1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add CHANGELOG entry for 4d858b3f2a

This commit is contained in:
kirikiriyamama 2019-12-09 15:17:29 +09:00
parent 4d858b3f2a
commit 2b17c114eb

View file

@ -1,3 +1,27 @@
* `Rails.application.config_for` merges shared configuration deeply.
```yaml
# config/example.yml
shared:
foo:
bar:
baz: 1
development:
foo:
bar:
qux: 2
```
```ruby
# Previously
Rails.application.config_for(:example)[:foo][:bar] #=> { qux: 2 }
# Now
Rails.application.config_for(:example)[:foo][:bar] #=> { baz: 1, qux: 2 }
```
*Yuhei Kiriyama*
* Remove access to values in nested hashes returned by `Rails.application.config_for` via String keys.
```yaml