Skip to content

Fixes deprecation warning for Rails.application.secrets#269

Merged
edimossilva merged 1 commit intomainfrom
fix-warnings-secretsdeprecation
Apr 9, 2025
Merged

Fixes deprecation warning for Rails.application.secrets#269
edimossilva merged 1 commit intomainfrom
fix-warnings-secretsdeprecation

Conversation

@mattfeg
Copy link
Collaborator

@mattfeg mattfeg commented Apr 9, 2025

Fix #260

  • Context
    Devise is currently trying to find a secret key in credentials, secrets and config before checking the application itself, deprecation warning is triggered on every call to Rails.application.secrets.

  • Solution
    Configure Devise's secret_key on setup.

heartcombo/devise#5644

@mattfeg mattfeg requested a review from danielnottingham April 9, 2025 12:09
@mattfeg mattfeg self-assigned this Apr 9, 2025
@edimossilva edimossilva merged commit 7671c5e into main Apr 9, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix deprecation warning Rails.application.secrets is deprecated in favor of Rails.application.credentials

2 participants