Skip to content
This repository
Browse code

Update Error Message when secrets.secret_key_base isn't given

  • Loading branch information...
commit 90228a168b3234c257ae4b1768bf615488f556d6 1 parent 0c96f8a
Roberto Miranda authored January 19, 2014
8  activesupport/lib/active_support/key_generator.rb
@@ -58,10 +58,10 @@ def generate_key(salt)
58 58
     def ensure_secret_secure(secret)
59 59
       if secret.blank?
60 60
         raise ArgumentError, "A secret is required to generate an " +
61  
-          "integrity hash for cookie session data. Use " +
62  
-          "config.secret_key_base = \"some secret phrase of at " +
63  
-          "least #{SECRET_MIN_LENGTH} characters\"" +
64  
-          "in config/initializers/secret_token.rb"
  61
+          "integrity hash for cookie session data. Set a " +
  62
+          "secret_key_base of at least " +
  63
+          "#{SECRET_MIN_LENGTH} characters " +
  64
+          "in config/initializers/secrets.yml"
65 65
       end
66 66
 
67 67
       if secret.length < SECRET_MIN_LENGTH

0 notes on commit 90228a1

Please sign in to comment.
Something went wrong with that request. Please try again.