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

Rollback is not called if destroy fails #484

Closed
Able1991 opened this issue Jan 14, 2020 · 0 comments · Fixed by #485
Closed

Rollback is not called if destroy fails #484

Able1991 opened this issue Jan 14, 2020 · 0 comments · Fixed by #485
Labels

Comments

@Able1991
Copy link
Contributor

Hi.
I call throw(:abort) in before_destroy callback and wait rollback for restore has_many :dependent => :destroy records, but rollback does not occur

https://gist.github.com/Able1991/8291b9ba95fd5f1d1adb6d6c751932a1

69525378-0bb39780-0f79-11ea-8396-fcd78a66a244

but I expect a rollback)

Able1991 pushed a commit to Able1991/paranoia that referenced this issue Jan 14, 2020
Able1991 pushed a commit to Able1991/paranoia that referenced this issue Jan 14, 2020
@mathieujobin mathieujobin linked a pull request Jan 19, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants