Module: MongoMapper::EmbeddedDocument::ClassMethods

Defined in:
lib/novelys_mongo_mapper/embedded_document.rb

Instance Method Summary collapse

Instance Method Details

#embeddable?Boolean

Returns:



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

def embeddable?
  true
end

#embedded_in(owner_name) ⇒ Object



34
35
36
37
38
# File 'lib/novelys_mongo_mapper/embedded_document.rb', line 34

def embedded_in(owner_name)
  define_method(owner_name) do
    self._parent_document
  end
end