Permalink
Browse files

Update Error Message when secrets.secret_key_base isn't given

  • Loading branch information...
1 parent 0c96f8a commit 90228a168b3234c257ae4b1768bf615488f556d6 @robertomiranda robertomiranda committed Jan 20, 2014
Showing with 4 additions and 4 deletions.
  1. +4 −4 activesupport/lib/active_support/key_generator.rb
@@ -58,10 +58,10 @@ def generate_key(salt)
def ensure_secret_secure(secret)
if secret.blank?
raise ArgumentError, "A secret is required to generate an " +
- "integrity hash for cookie session data. Use " +
- "config.secret_key_base = \"some secret phrase of at " +
- "least #{SECRET_MIN_LENGTH} characters\"" +
- "in config/initializers/secret_token.rb"
+ "integrity hash for cookie session data. Set a " +
+ "secret_key_base of at least " +
+ "#{SECRET_MIN_LENGTH} characters " +
+ "in config/initializers/secrets.yml"
end
if secret.length < SECRET_MIN_LENGTH

0 comments on commit 90228a1

Please sign in to comment.