diff --git a/lib/database_cleaner/configuration.rb b/lib/database_cleaner/configuration.rb index 6fb1e06..24ddaf2 100644 --- a/lib/database_cleaner/configuration.rb +++ b/lib/database_cleaner/configuration.rb @@ -42,7 +42,7 @@ module DatabaseCleaner def connections # double yuck.. can't wait to deprecate this whole class... - unless @cleaners + unless defined?(@cleaners) && @cleaners autodetected = ::DatabaseCleaner::Base.new add_cleaner(autodetected.orm) end