aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/upgrading_ruby_on_rails.md
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2017-04-21 16:40:03 -0400
committerRafael Mendonça França <rafaelmfranca@gmail.com>2017-04-21 16:40:03 -0400
commit0541a0d5481043a9c78371446389794944daf3f0 (patch)
treede07db73f8e5d0c8b1961bc2a68246efffa5e211 /guides/source/upgrading_ruby_on_rails.md
parent128b804c6ce40fcbde744f294f8cb98654f6efec (diff)
downloadrails-0541a0d5481043a9c78371446389794944daf3f0.tar.gz
rails-0541a0d5481043a9c78371446389794944daf3f0.tar.bz2
rails-0541a0d5481043a9c78371446389794944daf3f0.zip
Add note about #26929 in the upgrade guide
This is a small breaking change that we chose to make in 5.1 since the fix can be done with a search and replace tool.
Diffstat (limited to 'guides/source/upgrading_ruby_on_rails.md')
-rw-r--r--guides/source/upgrading_ruby_on_rails.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md
index 3afc0e5309..ebfdc78dfc 100644
--- a/guides/source/upgrading_ruby_on_rails.md
+++ b/guides/source/upgrading_ruby_on_rails.md
@@ -84,6 +84,23 @@ Also, if you have pretty old YAML documents containing dumps of such objects,
you may need to load and dump them again to make sure that they reference
the right constant and that loading them won't break in the future.
+### `config.secrets` now load with all keys as symbols
+
+If you application stores nested configuration in `secrets.yml` now all keys are being
+laded as symbols so access using strings should be changed.
+
+From:
+
+```ruby
+Rails.appplication.config.secrets[:smtp_settings]["address"]
+```
+
+To:
+
+```ruby
+Rails.application.config.secrets[:smtp_settings][:address]
+```
+
Upgrading from Rails 4.2 to Rails 5.0
-------------------------------------