1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/rails/application
Pier-Olivier Thibault d14fab04ff Use Rails::Paths::Path#existent in database_configuration
Database configuration was trying to load the first path that
config.paths['config/database'] was returning even if the path didn't
exist in the filesystem.

Because Rails::Paths::Path has the possibility to return more than 1
path (as an array), database_configuration should filter down the paths
to the existing one and then load the first one.

This would make it possible to move the database.yml file and add the
new path to paths['config/database'] and still load the configurations.
2014-05-07 18:18:00 -04:00
..
bootstrap.rb Revert "Only lookup config.log_level for stdlib ::Logger. Closes #11665." 2014-02-21 09:50:19 -05:00
configuration.rb Use Rails::Paths::Path#existent in database_configuration 2014-05-07 18:18:00 -04:00
default_middleware_stack.rb Move Rack::Cache after AD::Static in the stack 2013-09-25 17:06:20 -07:00
finisher.rb Add mailer previews feature based on mail_view gem 2013-12-17 03:58:35 +00:00
routes_reloader.rb