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

Merged

Conversation

btagliani
Copy link
Contributor

@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

@MaicolBen MaicolBen closed this Jan 10, 2025
@MaicolBen MaicolBen reopened this Jan 10, 2025
@MaicolBen MaicolBen merged commit aedef3c into lynndylanhurley:master Jan 10, 2025
21 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.

2 participants