Module: MarkMapper::Plugins::Persistence

Extended by:
ActiveSupport::Concern
Included in:
Document, EmbeddedDocument
Defined in:
lib/mark_mapper/plugins/persistence.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#collectionObject


70
71
72
# File 'lib/mark_mapper/plugins/persistence.rb', line 70

def collection
  _root_document.class.collection
end

#databaseObject


74
75
76
# File 'lib/mark_mapper/plugins/persistence.rb', line 74

def database
  _root_document.class.database
end