be2fd61137
Fixes #40031 While removing deprecated non-symbol access to nested `config_for` hashes in #37876, we also broke `config_for` for anyone using the [safe_yaml] gem. The problem is that `safe_yaml` patches `YAML.load` in a way that doesn't honor the `symbolize_names` options (I believe this is on purpose, to prevent symbol-based DOS attacks). In the description of #37876 there is mention of the fact that this was the first place in Rails we used `symbolize_names`, and that `deep_symbolize_keys` had been used in the past. This commit switches over to `deep_symbolize_keys` to allow `config_for` to continue working for people using [safe_yaml]. [safe_yaml]: https://rubygems.org/gems/safe_yaml |
||
---|---|---|
.. | ||
application | ||
command | ||
commands | ||
configuration | ||
engine | ||
fixtures/lib | ||
generators | ||
isolation | ||
minitest | ||
railties | ||
test_unit | ||
abstract_unit.rb | ||
app_loader_test.rb | ||
backtrace_cleaner_test.rb | ||
code_statistics_calculator_test.rb | ||
code_statistics_test.rb | ||
console_helpers.rb | ||
engine_test.rb | ||
env_helpers.rb | ||
generators_test.rb | ||
initializable_test.rb | ||
json_params_parsing_test.rb | ||
path_generation_test.rb | ||
paths_test.rb | ||
rack_logger_test.rb | ||
rails_info_controller_test.rb | ||
rails_info_test.rb | ||
secrets_test.rb | ||
version_test.rb |