Class: Mongo::Migration::Mongoid

Inherits:
Object
  • Object
show all
Defined in:
lib/mongo_migration/adapters/mongoid.rb

Instance Method Summary collapse

Instance Method Details

#database(name) ⇒ Object



6
7
8
# File 'lib/mongo_migration/adapters/mongoid.rb', line 6

def database name
  name == :default ? Mongoid.master : Mongoid.databases[name.to_s]
end

#loggerObject



2
3
4
# File 'lib/mongo_migration/adapters/mongoid.rb', line 2

def logger
  Mongoid.logger
end