mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
d14fab04ff
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. |
||
---|---|---|
.. | ||
bootstrap.rb | ||
configuration.rb | ||
default_middleware_stack.rb | ||
finisher.rb | ||
routes_reloader.rb |