Module: DatabaseCleaner::Mongoid::Base

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

Instance Method Summary collapse

Methods included from Generic::Base

included

Instance Method Details

#dbObject



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

def db
  @db || :default
end

#db=(desired_db) ⇒ Object



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

def db=(desired_db)
  @db = desired_db
end