Class: Rails::Configuration
- Defined in:
- lib/six-updater-web/config/environment.rb
Instance Method Summary collapse
Instance Method Details
#database_configuration ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/six-updater-web/config/environment.rb', line 14 def database_configuration conf = File.open(database_configuration_file, 'r') {|file| YAML::load(file)} conf.each do |k, v| if v["adapter"] =~ /^sqlite/ v["database"] = File.join(SixUpdaterWeb::DATA_PATH, v["database"]) if v.include?("database") v["dbfile"] = File.join(SixUpdaterWeb::DATA_PATH, v["dbfile"]) if v.include?("dbfile") end end conf end |