rails/railties/test/application/initializers
eileencodes 2a53fe638d
Deprecate and replace #default_hash and #[]
Database configurations are now objects almost everywhere, so we don't
need to fake access to a hash with `#default_hash` or it's alias `#[]`.
Applications should `configs_for` and pass `env_name` and `spec_name` to
get the database config object. If you're looking for the default for
the test environment you can pass `configs_for(env_name: "test", spec_name:
"primary")`. Change test to developement to get the dev config, etc.

`#default_hash` and `#[]` will be removed in 6.2.

Co-authored-by: John Crepezzi <john.crepezzi@gmail.com>
2020-01-17 16:08:12 -05:00
..
frameworks_test.rb Deprecate and replace #default_hash and #[] 2020-01-17 16:08:12 -05:00
hooks_test.rb Deprecate and replace #default_hash and #[] 2020-01-17 16:08:12 -05:00
i18n_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
load_path_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
notifications_test.rb Log call site for all queries 2017-12-13 20:13:21 -05:00