mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Merge branch 'master' of https://github.com/dmitrypol/database_cleaner into dmitrypol-master
This commit is contained in:
commit
82bcbde019
1 changed files with 6 additions and 4 deletions
|
@ -26,10 +26,12 @@ module DatabaseCleaner
|
||||||
database.use(db)
|
database.use(db)
|
||||||
end
|
end
|
||||||
|
|
||||||
database['system.namespaces'].find(:name => { '$not' => /\.system\.|\$/ }).to_a.map do |collection|
|
database.collections.collect { |c| c.namespace.split('.',2)[1] }
|
||||||
_, name = collection['name'].split('.', 2)
|
|
||||||
name
|
# database['system.namespaces'].find(:name => { '$not' => /\.system\.|\$/ }).to_a.map do |collection|
|
||||||
end
|
# _, name = collection['name'].split('.', 2)
|
||||||
|
# name
|
||||||
|
# end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue