Module: MongoMapper::Plugins::EmbeddedDocument::ClassMethods

Defined in:
lib/mongo_mapper/plugins/embedded_document.rb

Instance Method Summary collapse

Instance Method Details

#embeddable?Boolean

Returns:



12
13
14
# File 'lib/mongo_mapper/plugins/embedded_document.rb', line 12

def embeddable?
  true
end

#embedded_in(owner_name) ⇒ Object



16
17
18
# File 'lib/mongo_mapper/plugins/embedded_document.rb', line 16

def embedded_in(owner_name)
  alias_method owner_name, :_parent_document
end