mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
add DatabaseCleaner safeguard config accessors
This commit is contained in:
parent
89cf05b0d3
commit
2437dd08fe
1 changed files with 6 additions and 2 deletions
|
@ -2,7 +2,11 @@ $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__))) unless $LOAD_PATH.i
|
||||||
require 'database_cleaner/configuration'
|
require 'database_cleaner/configuration'
|
||||||
|
|
||||||
module DatabaseCleaner
|
module DatabaseCleaner
|
||||||
def self.can_detect_orm?
|
class << self
|
||||||
DatabaseCleaner::Base.autodetect_orm
|
attr_accessor :allow_remote_database_url, :allow_production
|
||||||
|
|
||||||
|
def can_detect_orm?
|
||||||
|
DatabaseCleaner::Base.autodetect_orm
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue