add DatabaseCleaner safeguard config accessors

This commit is contained in:
Sven Fuchs 2018-03-24 16:13:50 +01:00 committed by Ernesto Tagwerker
parent 89cf05b0d3
commit 2437dd08fe

View file

@ -2,7 +2,11 @@ $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__))) unless $LOAD_PATH.i
require 'database_cleaner/configuration'
module DatabaseCleaner
def self.can_detect_orm?
class << self
attr_accessor :allow_remote_database_url, :allow_production
def can_detect_orm?
DatabaseCleaner::Base.autodetect_orm
end
end
end