From 4b8ad5955829798150acc49bdd8e20157e218d65 Mon Sep 17 00:00:00 2001 From: Splines Date: Wed, 24 Apr 2024 10:23:56 +0200 Subject: [PATCH] Fix Rails `secrets` deprecation warning (Devise) This is due to https://github.com/heartcombo/devise/issues/5644. --- config/initializers/devise.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index d900ea888..4c676dc73 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -6,6 +6,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 = Rails.application.secret_key_base # ==> Mailer Configuration # Configure the e-mail address which will be shown in Devise::Mailer,