Module: MongoMapper::EmbeddedDocument::ClassMethods

Defined in:
lib/mongo_mapper/embedded_document.rb

Instance Method Summary collapse

Instance Method Details

#embeddable?Boolean

Returns:



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

def embeddable?
  true
end

#embedded_in(owner_name) ⇒ Object



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

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