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

after_commit on destroy only called for soft destroy on rails 6 #195

Open
thijsnado opened this issue Jan 7, 2021 · 0 comments
Open

after_commit on destroy only called for soft destroy on rails 6 #195

thijsnado opened this issue Jan 7, 2021 · 0 comments

Comments

@thijsnado
Copy link

In rails 5.2, calling destroy twice on a paranoid record would run the after_commit on: :destroy method twice. We discovered when upgrading to rails 6 that this is no longer the case. Not sure if this is an issue but the expected behavior around those callbacks should be documented. The after_destroy callbacks however do run correctly.

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

No branches or pull requests

1 participant