aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/code
diff options
context:
space:
mode:
authorFilipe Moreira <famoreira@gmail.com>2012-03-12 21:19:58 +0100
committerFilipe Moreira <famoreira@gmail.com>2012-03-12 21:19:58 +0100
commit6c93fbc516f85fa59fa165f130872d02262f4a28 (patch)
tree21d165ef8eeb9f3326487a591efe95927533ff31 /railties/guides/code
parent0b36ad706667b95eee444f1b9272f59c0495d724 (diff)
downloadrails-6c93fbc516f85fa59fa165f130872d02262f4a28.tar.gz
rails-6c93fbc516f85fa59fa165f130872d02262f4a28.tar.bz2
rails-6c93fbc516f85fa59fa165f130872d02262f4a28.zip
Advise to keep secret token private
Diffstat (limited to 'railties/guides/code')
-rw-r--r--railties/guides/code/getting_started/config/initializers/secret_token.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/guides/code/getting_started/config/initializers/secret_token.rb b/railties/guides/code/getting_started/config/initializers/secret_token.rb
index b0c8ee23c1..f36ebdda18 100644
--- a/railties/guides/code/getting_started/config/initializers/secret_token.rb
+++ b/railties/guides/code/getting_started/config/initializers/secret_token.rb
@@ -4,4 +4,6 @@
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
+# Make sure your secret key is kept private
+# if you're sharing your code publicly.
Blog::Application.config.secret_token = '685a9bf865b728c6549a191c90851c1b5ec41ecb60b9e94ad79dd3f824749798aa7b5e94431901960bee57809db0947b481570f7f13376b7ca190fa28099c459'