Merge pull request #278 from imomoisoft/master

Updated regexp for filter system collections
This commit is contained in:
Ernesto Tagwerker 2014-08-18 13:03:26 -03:00
commit 3be080ef21
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ module DatabaseCleaner
session.use(db)
end
session['system.namespaces'].find(:name => { '$not' => /system|\$/ }).to_a.map do |collection|
session['system.namespaces'].find(:name => { '$not' => /\.system\.|\$/ }).to_a.map do |collection|
_, name = collection['name'].split('.', 2)
name
end