Sha256: 655f4856c835f480f3b145e1245d004e89b283839ab8ef00dcae47b813cf3cd8
Contents?: true
Size: 290 Bytes
Versions: 24
Compression:
Stored size: 290 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, :polymorphic => true def set_parent=(set = false) self.parent_title = namable.title if set end end
Version data entries
24 entries across 24 versions & 5 rubygems
Version | Path |
---|---|
mongoid_spacial-0.1.0 | spec/models/name.rb |
mongoid_spacial-0.0.1 | spec/models/name.rb |
mongoid-eager-loading-0.3.1 | spec/models/name.rb |
mongoid-eager-loading-0.3.0 | spec/models/name.rb |