Sha256: 1f56a465ed517172da2563cecc5867e953ac8757e35db24e0d3cbabd05e46399
Contents?: true
Size: 288 Bytes
Versions: 1
Compression:
Stored size: 288 Bytes
Contents
class Name include Mongoid::Document field :first_name field :last_name field :parent_title key :first_name, :last_name embeds_many :translations embedded_in :person, :inverse_of => :name def set_parent=(set = false) self.parent_title = person.title if set end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongoid-pre-2.0.0.beta1 | spec/models/name.rb |