Skip to content

Commit

Permalink
Add clearer error on missing secret key
Browse files Browse the repository at this point in the history
  • Loading branch information
jechols committed Apr 21, 2015
1 parent b3eb108 commit 4ccbd57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/blacklight/rails/routes.rb
Expand Up @@ -18,7 +18,7 @@ def blacklight_for(*resources)
private
def raise_no_blacklight_secret_key #:nodoc:
raise <<-ERROR
Blacklight.secret_key was not set. Please add the following to an initializer:
Blacklight.secret_key was not set. If you are using Rails 4.1+, set your app's secret key base (config/secrets.yml) OR add the following to an initializer:
Blacklight.secret_key = '#{SecureRandom.hex(64)}'
Expand Down

0 comments on commit 4ccbd57

Please sign in to comment.