From 436dabe3279be0f822ef20bb1263fe9467dacf73 Mon Sep 17 00:00:00 2001 From: Theodor Vararu Date: Fri, 24 Nov 2023 17:37:59 +0000 Subject: [PATCH] Remove deprecation warning It's coming from Devise and can be removed by specifying the secret_key_base explicitly: https://github.com/heartcombo/devise/issues/5644 --- 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 57266b096..aed997bf0 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -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 = '' + config.secret_key = Rails.application.secret_key_base # ==> Controller configuration # Configure the parent class to the devise controllers.