Module: MongoMapper::EmbeddedDocument::ClassMethods

Defined in:
lib/mongo_mapper/embedded_document.rb

Instance Method Summary collapse

Instance Method Details

#embeddable?Boolean

Returns:



30
31
32
# File 'lib/mongo_mapper/embedded_document.rb', line 30

def embeddable?
  true
end

#embedded_in(owner_name) ⇒ Object



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

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