class AuctionItem < ActiveRecord::Base belongs_to :auction has_many :images, :as => :item acts_as_list :scope => :auction_id end