Skip to content

Commit

Permalink
Suppress warning Rails.application.secrets is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
JunichiIto committed Jan 1, 2024
1 parent 74efd61 commit 8440147
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
# by default. You can change it below and use your own secret key.
# config.secret_key = 'c9bed37e2f2916fdb8578ede1610ebbc346a599e2e89c59d60fdb3b6e112e7672935464b0f4286d6aa09edd75d3aa8d1a4d078fd91a56d2015a8163f330c921f'

# NOTE: Please remove the following lines when https://github.com/heartcombo/devise/issues/5644 is fixed
require 'devise/version'
raise "Issue 5644 might be fixed" unless Devise::VERSION == "4.9.3"
config.secret_key = Rails.application.secret_key_base

# ==> Controller configuration
# Configure the parent class to the devise controllers.
# config.parent_controller = 'DeviseController'
Expand Down

0 comments on commit 8440147

Please sign in to comment.