1 2 3 4 5 6
class Treasure < ActiveRecord::Base has_and_belongs_to_many :parrots belongs_to :looter, :polymorphic => true has_many :price_estimates, :as => :estimate_of end