aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-09-16 16:06:04 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-09-16 16:06:04 +0900
commit8a3cf5340c56b4cd94088b8bc06b89ac22321020 (patch)
tree09e978bdd8441fca79dd2674c3293c992ed11564 /guides/source
parent536d3068b964d5848ebc47292c21c0fb0450c17b (diff)
downloadrails-8a3cf5340c56b4cd94088b8bc06b89ac22321020.tar.gz
rails-8a3cf5340c56b4cd94088b8bc06b89ac22321020.tar.bz2
rails-8a3cf5340c56b4cd94088b8bc06b89ac22321020.zip
Fix typo: `credentails` -> `credentials` [ci skip]
Follow up of ca18922ac23be2cde6963fae9b193c9111bec6f8
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/security.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/security.md b/guides/source/security.md
index a74de22ac0..2ac52155f8 100644
--- a/guides/source/security.md
+++ b/guides/source/security.md
@@ -1038,18 +1038,18 @@ By default, this file contains the application's
access keys for external APIs.
The credentials added to this file are accessible via `Rails.application.credentials`.
-For example, with the following decrypted `config/credentails.yml.enc`:
+For example, with the following decrypted `config/credentials.yml.enc`:
secret_key_base: 3b7cd727ee24e8444053437c36cc66c3
some_api_key: SOMEKEY
-`Rails.application.credentails.some_api_key` returns `SOMEKEY` in any environment.
+`Rails.application.credentials.some_api_key` returns `SOMEKEY` in any environment.
If you want an exception to be raised when some key is blank, use the bang
version:
```ruby
-Rails.application.credentails.some_api_key! # => raises KeyError: key not found: :some_api_key
+Rails.application.credentials.some_api_key! # => raises KeyError: key not found: :some_api_key
```
Additional Resources