mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Merge pull request #278 from imomoisoft/master
Updated regexp for filter system collections
This commit is contained in:
commit
3be080ef21
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue