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' end