adds config_file_location for AR setup to address different setups

This commit is contained in:
Ben Mabey 2010-12-17 09:22:19 -07:00
parent 0d334c37f5
commit 9bd76e743d

View file

@ -7,9 +7,13 @@ module DatabaseCleaner
def self.available_strategies
%w[truncation transaction deletion]
end
def self.config_file_location=(path)
@config_file_location = path
end
def self.config_file_location
"#{DatabaseCleaner.app_root}/config/database.yml"
@config_file_location ||= "#{DatabaseCleaner.app_root}/config/database.yml"
end
module Base