Module: DatabaseCleaner::DataMapper::Base

Includes:
Generic::Base
Included in:
Transaction, Truncation
Defined in:
lib/database_cleaner/data_mapper/base.rb

Instance Method Summary (collapse)

Methods included from Generic::Base

#cleaning, included

Instance Method Details

- (Object) db



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

def db
  @db ||= :default
end

- (Object) db=(desired_db)



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

def db=(desired_db)
  @db = desired_db
end