Module: MongoMapper::Plugins::Persistence::InstanceMethods

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

Instance Method Summary collapse

Instance Method Details

#collectionObject



59
60
61
# File 'lib/mongo_mapper/plugins/persistence.rb', line 59

def collection
  _root_document.class.collection
end

#databaseObject



63
64
65
# File 'lib/mongo_mapper/plugins/persistence.rb', line 63

def database
  _root_document.class.database
end