config/initializers/devise.rb in g5_authenticatable-1.1.0 vs config/initializers/devise.rb in g5_authenticatable-1.1.1
- old
+ new
@@ -4,10 +4,11 @@
# Many of these configuration options can be set straight in your model.
Devise.setup do |config|
# The secret key used by Devise. Devise uses this key to generate
# random tokens. Changing this key will render invalid all existing
# confirmation, reset password and unlock tokens in the database.
- config.secret_key = ENV['DEVISE_SECRET_KEY']
+ config.secret_key = ENV['DEVISE_SECRET_KEY'].presence ||
+ ENV['SECRET_KEY_BASE'].presence
# ==> Mailer Configuration
# Configure the e-mail address which will be shown in Devise::Mailer,
# note that it will be overwritten if you use your own mailer class
# with default "from" parameter.