blob: 51c8183dee6ee86b70072ef7e715a5fe110ccfb5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
class Pirate < ActiveRecord::Base
belongs_to :parrot
has_and_belongs_to_many :parrots
has_many :treasures, :as => :looter
has_many :treasure_estimates, :through => :treasures, :source => :price_estimates
validates_presence_of :catchphrase
end
|