Skip to content

Commit

Permalink
Fix Rails.application.secrets deprecation warning in Devise config
Browse files Browse the repository at this point in the history
DEPRECATION WARNING: `Rails.application.secrets` is deprecated in favor of `Rails.application.credentials` and will be removed in Rails 7.2. (called from <top (required)> at /home/slau/fat_free_crm/config/environment.rb:5)

heartcombo/devise#5644
  • Loading branch information
stanleylhs committed Sep 17, 2024
1 parent d9a3f3a commit 2e507d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# Devise will use the `secret_key_base` as its `secret_key`
# by default. You can change it below and use your own secret key.
# config.secret_key = SecureRandom.hex(64)
config.secret_key = Rails.application.secret_key_base

# ==> Mailer Configuration
# Configure the e-mail address which will be shown in Devise::Mailer,
Expand Down

0 comments on commit 2e507d4

Please sign in to comment.