Skip to content

Commit

Permalink
Fix Devise deprecation warning
Browse files Browse the repository at this point in the history
Even I'm using Rails credentials I got this deprecation warning from Devise,
Rails secrets will be removed on Rails 7.2, and Devise still having it
and generating a secure key.

heartcombo/devise#5645
heartcombo/devise#5648
  • Loading branch information
JuanVqz committed Mar 5, 2024
1 parent 9458746 commit dd2d307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# confirmation, reset password and unlock tokens in the database.
# 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 = 'af7c22a168ce0faee196d6f89f60b8f6514e2248260e96260173ff0ffb86294bef23854293a21a61ea0171c95a66c3a59313ebf69150a7a712e2c8046bef1a19'
config.secret_key = Rails.application.secret_key_base

# ==> Controller configuration
# Configure the parent class to the devise controllers.
Expand Down

0 comments on commit dd2d307

Please sign in to comment.