Skip to content

Commit

Permalink
Devise: Workaround deprecation warning
Browse files Browse the repository at this point in the history
Can be reverted once heartcombo/devise#5644 is resolved

Was causing this warning:
https://github.com/abtion/rails-template/actions/runs/9657664443/job/26637340275#step:10:11
> 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/runner/work/rails-template/rails-template/config/environment.rb:7)
  • Loading branch information
runephilosof-abtion committed Jun 25, 2024
1 parent 3d343f8 commit 25c2ca5
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 @@ -21,7 +21,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 = '2d4ac5fc04bdf9d4862c55104980520a4f7c63563e92df3b14d237b2135a73b7'
config.secret_key = Rails.application.secret_key_base

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

0 comments on commit 25c2ca5

Please sign in to comment.