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