Module: DatabaseCleaner::MongoMapper::Base

Includes:
Generic::Base
Included in:
Truncation
Defined in:
lib/database_cleaner/mongo_mapper/base.rb

Instance Method Summary collapse

Methods included from Generic::Base

#cleaning, included

Instance Method Details

#dbObject



15
16
17
# File 'lib/database_cleaner/mongo_mapper/base.rb', line 15

def db
  @db ||= :default
end

#db=(desired_db) ⇒ Object



11
12
13
# File 'lib/database_cleaner/mongo_mapper/base.rb', line 11

def db=(desired_db)
  @db = desired_db
end