diff options
author | robertomiranda <rjmaltamar@gmail.com> | 2014-01-19 20:59:54 -0500 |
---|---|---|
committer | robertomiranda <rjmaltamar@gmail.com> | 2014-01-19 22:29:34 -0500 |
commit | 90228a168b3234c257ae4b1768bf615488f556d6 (patch) | |
tree | 214e748e87646ba48866cc3456a77c2c22767c50 /activesupport | |
parent | 0c96f8abb88f12db16878fdafc1963852833a817 (diff) | |
download | rails-90228a168b3234c257ae4b1768bf615488f556d6.tar.gz rails-90228a168b3234c257ae4b1768bf615488f556d6.tar.bz2 rails-90228a168b3234c257ae4b1768bf615488f556d6.zip |
Update Error Message when secrets.secret_key_base isn't given
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/key_generator.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/key_generator.rb b/activesupport/lib/active_support/key_generator.rb index 598c46bce5..58a2289b08 100644 --- a/activesupport/lib/active_support/key_generator.rb +++ b/activesupport/lib/active_support/key_generator.rb @@ -58,10 +58,10 @@ module ActiveSupport 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 |