Module: MongoMapper::Plugins::EmbeddedDocument

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

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.configure(model) ⇒ Object



4
5
6
7
8
# File 'lib/mongo_mapper/plugins/embedded_document.rb', line 4

def self.configure(model)
  model.class_eval do
    attr_reader :_root_document, :_parent_document
  end
end