From 0b36ad706667b95eee444f1b9272f59c0495d724 Mon Sep 17 00:00:00 2001 From: Filipe Moreira Date: Mon, 12 Mar 2012 21:13:17 +0100 Subject: Advise to keep secret token private --- .../rails/app/templates/config/initializers/secret_token.rb.tt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/railties/lib/rails/generators/rails/app/templates/config/initializers/secret_token.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/initializers/secret_token.rb.tt index a3143f1346..e02397aaf9 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/initializers/secret_token.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/initializers/secret_token.rb.tt @@ -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_token is kept private +# if you're sharing your code publicly. <%= app_const %>.config.secret_token = '<%= app_secret %>' -- cgit v1.2.3