Sha256: f3798660682fafe987842bd5a1892dfdac1d9680df6d0b447bf1cdd43ba1780d
Contents?: true
Size: 388 Bytes
Versions: 16
Compression:
Stored size: 388 Bytes
Contents
class Treasure < ActiveRecord::Base has_and_belongs_to_many :parrots belongs_to :looter, :polymorphic => true # No counter_cache option given belongs_to :ship has_many :price_estimates, :as => :estimate_of has_and_belongs_to_many :rich_people, join_table: 'peoples_treasures', validate: false accepts_nested_attributes_for :looter end class HiddenTreasure < Treasure end
Version data entries
16 entries across 16 versions & 1 rubygems