Sha256: f3d7ed754958a61e41f0587328b5adbbb693d9da62e1a2f4da5673040ca9c850

Contents?: true

Size: 257 Bytes

Versions: 14

Compression:

Stored size: 257 Bytes

Contents

class ShipPart < ActiveRecord::Base
  belongs_to :ship
  has_many :trinkets, :class_name => "Treasure", :as => :looter
  accepts_nested_attributes_for :trinkets, :allow_destroy => true
  accepts_nested_attributes_for :ship

  validates_presence_of :name
end

Version data entries

14 entries across 14 versions & 1 rubygems

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