From 8cd8bb62661821bd9053dbc25d884cf29e7fa9f2 Mon Sep 17 00:00:00 2001 From: Rune Philosof <57357936+runephilosof-abtion@users.noreply.github.com> Date: Wed, 26 Jun 2024 08:09:01 +0200 Subject: [PATCH] Devise: Workaround deprecation warning (#2185) Can be reverted once https://github.com/heartcombo/devise/issues/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 at /home/runner/work/rails-template/rails-template/config/environment.rb:7) --- config/initializers/devise.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index c2354c250..dbb8003aa 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -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.