Sha256: f8472b28001502efd606c8adcbb8b9c3abbd50381f80ace798a536dd2d75417e
Contents?: true
Size: 300 Bytes
Versions: 5
Compression:
Stored size: 300 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 :namable, :inverse_of => [:name, :names] def set_parent=(set = false) self.parent_title = namable.title if set end end
Version data entries
5 entries across 5 versions & 2 rubygems