aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-04-30 17:50:38 +0900
committerGitHub <noreply@github.com>2017-04-30 17:50:38 +0900
commit5fa0a93119e94208e3a361dbd8908a9f08c10bae (patch)
tree07c30ee0bb8e332d4218c7090f0918b679b2c0ed
parent89389428b5d04e14f09009ac9af593d7c3da709f (diff)
parent06dfda12aeb7dd1c530169ab96eef09869a3a425 (diff)
downloadrails-5fa0a93119e94208e3a361dbd8908a9f08c10bae.tar.gz
rails-5fa0a93119e94208e3a361dbd8908a9f08c10bae.tar.bz2
rails-5fa0a93119e94208e3a361dbd8908a9f08c10bae.zip
Merge pull request #28934 from y-yagi/fix-note-about-secrets
Fix note about `secrets.yml` [ci skip]
-rw-r--r--guides/source/upgrading_ruby_on_rails.md6
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