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

Version Path
ibm_db-5.2.0 test/models/treasure.rb
ibm_db-5.1.0 test/models/treasure.rb
ibm_db-5.0.5 test/models/treasure.rb
ibm_db-5.0.4 test/models/treasure.rb
ibm_db-5.0.3 test/models/treasure.rb
ibm_db-5.0.2 test/models/treasure.rb
ibm_db-4.0.0-x86-mingw32 test/models/treasure.rb
ibm_db-4.0.0 test/models/treasure.rb
ibm_db-3.0.4-x86-mingw32 test/models/treasure.rb
ibm_db-3.0.4 test/models/treasure.rb
ibm_db-3.0.3-x86-mingw32 test/models/treasure.rb
ibm_db-3.0.3 test/models/treasure.rb
ibm_db-3.0.2-x86-mingw32 test/models/treasure.rb
ibm_db-3.0.2 test/models/treasure.rb
ibm_db-3.0.1 test/models/treasure.rb
ibm_db-3.0.1-x86-mingw32 test/models/treasure.rb