We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ac0f4e commit c55576eCopy full SHA for c55576e
config/initializers/devise.rb
@@ -14,7 +14,7 @@
14
# confirmation, reset password and unlock tokens in the database.
15
# Devise will use the `secret_key_base` as its `secret_key`
16
# by default. You can change it below and use your own secret key.
17
- config.secret_key = ENV.fetch('DEVISE_SECRET', nil)
+ config.secret_key = ENV.fetch('DEVISE_SECRET') { Rails.application.credentials.secret_key_base }
18
19
config.pepper = ENV.fetch('DEVISE_PEPPER', nil)
20
spec/dummy/config/secrets.yml
0 commit comments