diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-04-30 16:33:00 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-04-30 16:34:12 +0900 |
commit | 06dfda12aeb7dd1c530169ab96eef09869a3a425 (patch) | |
tree | 07c30ee0bb8e332d4218c7090f0918b679b2c0ed /guides/source | |
parent | 89389428b5d04e14f09009ac9af593d7c3da709f (diff) | |
download | rails-06dfda12aeb7dd1c530169ab96eef09869a3a425.tar.gz rails-06dfda12aeb7dd1c530169ab96eef09869a3a425.tar.bz2 rails-06dfda12aeb7dd1c530169ab96eef09869a3a425.zip |
Fix note about `secrets.yml` [ci skip]
The `secrets` method is in `Application` class, not `Configuration` class.
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/upgrading_ruby_on_rails.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md index ff747a95a0..93864db141 100644 --- a/guides/source/upgrading_ruby_on_rails.md +++ b/guides/source/upgrading_ruby_on_rails.md @@ -83,7 +83,7 @@ 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 loaded with all keys as symbols +### `application.secrets` now loaded with all keys as symbols If your application stores nested configuration in `config/secrets.yml`, all keys are now loaded as symbols, so access using strings should be changed. @@ -91,13 +91,13 @@ are now loaded as symbols, so access using strings should be changed. From: ```ruby -Rails.appplication.config.secrets[:smtp_settings]["address"] +Rails.application.secrets[:smtp_settings]["address"] ``` To: ```ruby -Rails.application.config.secrets[:smtp_settings][:address] +Rails.application.secrets[:smtp_settings][:address] ``` Upgrading from Rails 4.2 to Rails 5.0 |