Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Prevent lock with unsaved changes #1640

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

btagliani
Copy link

@btagliani btagliani commented Oct 22, 2024

We are encountering an error on Rails 7 where Devise is changing the confirmed_at field in the resource after calling @resource.active_for_authentication?, and it prevents it from running the @resource.with_lock block.

Copy link
Collaborator

@MaicolBen MaicolBen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a test? I'm setting up rails 7.2 and this didn't fix any of the tests failing

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.

2 participants