Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a5696e36c6
Fetching contributors…

Cannot retrieve contributors at this time

7 lines (6 sloc) 0.221 kb
class ShipPart < ActiveRecord::Base
belongs_to :ship
has_many :trinkets, :class_name => "Treasure", :as => :looter
accepts_nested_attributes_for :trinkets, :allow_destroy => true
validates_presence_of :name
end
Jump to Line
Something went wrong with that request. Please try again.