Permalink
Browse files

Merge pull request #13765 from robertomiranda/secrets_token

Update Error Message when secrets.secret_key_base isn't given
  • Loading branch information...
2 parents b1b21f9 + 90228a1 commit 18e918870906a1751e2e302eccb70524c103d70e @guilleiguaran guilleiguaran 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 18e9188

Please sign in to comment.