Skip to content

Commit

Permalink
Fix Rails secrets deprecation from Devise
Browse files Browse the repository at this point in the history
Known issue and waiting on PR merge and new release. In the meantime, we can apply this simple fix.

```
DEPRECATION WARNING: `Rails.application.secrets` is deprecated in favor of `Rails.application.credentials` and will be removed in Rails 7.2. (called from <top (required)> at /home/runner/work/demo.activeadmin.info/demo.activeadmin.info/config/environment.rb:5)
```

heartcombo/devise#5645 (comment)
  • Loading branch information
javierjulio committed Jan 6, 2024
1 parent 0ef23a1 commit f6a5c62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = 'd0e4b1dd2d7c805cdd767c13ca2d7ac1e0f669575727596a66c5c8fff12f7ef6988c463f34268ca27915107b70674e093d81e612bff8427f6e40dd54ed5a9c71'
config.secret_key = Rails.application.secret_key_base

# ==> Controller configuration
# Configure the parent class to the devise controllers.
Expand Down

0 comments on commit f6a5c62

Please sign in to comment.