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

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

Instance Method Summary collapse

Instance Method Details

#embeddable?Boolean

Returns:



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

def embeddable?
  true
end

#embedded_in(owner_name) ⇒ Object



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

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