Module: MongoMapper::EmbeddedDocument::ClassMethods

Defined in:
lib/mongo_mapper/embedded_document.rb

Instance Method Summary collapse

Instance Method Details

#embeddable?Boolean

Returns:



33
34
35
# File 'lib/mongo_mapper/embedded_document.rb', line 33

def embeddable?
  true
end

#embedded_in(owner_name) ⇒ Object



37
38
39
# File 'lib/mongo_mapper/embedded_document.rb', line 37

def embedded_in(owner_name)
  define_method(owner_name) { _parent_document }
end