diff options
author | José Valim <jose.valim@plataformatec.com.br> | 2013-12-24 08:22:30 -0800 |
---|---|---|
committer | José Valim <jose.valim@plataformatec.com.br> | 2013-12-24 08:22:30 -0800 |
commit | df09ce966e41b53b3d5723c4efb1e7470c452dd8 (patch) | |
tree | a1c73eb57f3b4e436dacccbde95d82a0277edbdc /railties/lib | |
parent | 9705df5c2bf29058c8e7c8d4fa91b95ffd3a74c9 (diff) | |
parent | d641a0cf0d89728cecaac0c7f7791bf594d079e0 (diff) | |
download | rails-df09ce966e41b53b3d5723c4efb1e7470c452dd8.tar.gz rails-df09ce966e41b53b3d5723c4efb1e7470c452dd8.tar.bz2 rails-df09ce966e41b53b3d5723c4efb1e7470c452dd8.zip |
Merge pull request #13471 from schneems/schneems/better-secrets-error-message
Better missing `secret_key_base` error message
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/application.rb b/railties/lib/rails/application.rb index 5b20c178eb..05acd78d98 100644 --- a/railties/lib/rails/application.rb +++ b/railties/lib/rails/application.rb @@ -414,7 +414,7 @@ module Rails def validate_secret_key_config! #:nodoc: if secrets.secret_key_base.blank? && config.secret_token.blank? - raise "You must set secret_key_base in your app's config" + raise "Missing `secret_key_base` for '#{Rails.env}' environment, set this value in `config/secrets.yml`" end end end |