Skip to content

Commit

Permalink
Merge pull request #3806 from codeforamerica/devise-credential-deprec…
Browse files Browse the repository at this point in the history
…ation-warnings

Less deprecation warnings during test runs
  • Loading branch information
bengolder authored Nov 21, 2023
2 parents 81ca793 + 235c4c1 commit 9fcc46e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
# Devise will use the `secret_key_base` as its `secret_key`
# by default.

# Silence unhelpful deprecation warnings:
# https://github.com/heartcombo/devise/issues/5644
# Can be removed once we are using a new devise release that
# incorporates https://github.com/heartcombo/devise/pull/5645
config.secret_key = Rails.application.secret_key_base

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

0 comments on commit 9fcc46e

Please sign in to comment.