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:
parent
4d858b3f2a
commit
2b17c114eb
1 changed files with 24 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue