thumbnail.rb
400 Bytes
class Thumbnail < ActiveRecord::Base
attr_accessible :uploaded_data
# mass assigned by attachment_fu
attr_accessible :content_type, :filename, :thumbnail_resize_options, :thumbnail, :parent_id
has_attachment :storage => :file_system,
:content_type => :image, :max_size => 5.megabytes, processor: 'Rmagick'
validates_as_attachment
sanitize_filename
postgresql_attachment_fu
end