class Image < ActiveRecord::Base belongs_to :auction_item belongs_to :item acts_as_list :scope => :auction_item_id acts_as_list :scope => :item_id has_attachment :content_type => :image, :storage => :s3, :max_size => 10.megabytes, :resize_to => '400x300>', :thumbnails => { :thumb => '150x150' }, :processor => 'ImageScience' # file_column :image, :magick => { # :versions => { :thumb => {:crop => "1:1", :size => "150x150!", :name => "thumb"}, # :normal => {:size => "400x300>"} # } # } end