mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
these mongo2 files are only used in the mongoid adapter, so move them there.
This commit is contained in:
parent
b83ed7d1e3
commit
c3ac4ed3b7
2 changed files with 0 additions and 16 deletions
|
@ -1,16 +0,0 @@
|
||||||
module DatabaseCleaner
|
|
||||||
module Mongo2
|
|
||||||
def self.available_strategies
|
|
||||||
%w[truncation]
|
|
||||||
end
|
|
||||||
module Base
|
|
||||||
def db=(desired_db)
|
|
||||||
@db = desired_db
|
|
||||||
end
|
|
||||||
|
|
||||||
def db
|
|
||||||
@db || raise("You have not specified a database. (see Mongo2::Database)")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
Loading…
Reference in a new issue