Method: ActionDispatch::Routing::Mapper#raise_no_secret_key

Defined in:
lib/devise/rails/routes.rb

#raise_no_secret_keyObject (protected)

:nodoc:



498
499
500
501
502
503
504
505
506
# File 'lib/devise/rails/routes.rb', line 498

def raise_no_secret_key #:nodoc:
  raise <<-ERROR
Devise.secret_key was not set. Please add the following to your Devise initializer:

  config.secret_key = '#{SecureRandom.hex(64)}'

Please ensure you restarted your application after installing Devise or setting the key.
ERROR
end