Sha256: 9cfbe82a71378c0671e80035f802b08d980509032b28e50259a0c99481ebe34f

Contents?: true

Size: 290 Bytes

Versions: 4

Compression:

Stored size: 290 Bytes

Contents

# frozen_string_literal: true

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

4 entries across 4 versions & 1 rubygems

Version Path
ibm_db-5.5.0-x86-mingw32 test/models/ship_part.rb
ibm_db-5.4.1-x86-mingw32 test/models/ship_part.rb
ibm_db-5.4.0-x86-mingw32 test/models/ship_part.rb
ibm_db-5.3.2-x86-mingw32 test/models/ship_part.rb