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

Failing destroy on parent model does not prevent a "very related model" to be destroyed anyway #108

Closed
plindelauf opened this issue Feb 11, 2014 · 2 comments

Comments

@plindelauf
Copy link

I have a parent model with a "has_many... dependent: :destroy" association with a related child model. Both models have "acts_as_paranoid". When the before_destroy callback fails on the parent model, I would expect the children not to be (soft) destroyed, but they are.

Here is the paranoia_test.rb with the failing test case for this: https://gist.github.com/plindelauf/8944656

@radar
Copy link
Collaborator

radar commented Feb 12, 2014

@plindelauf Can you please submit that test as a PR?

@radar
Copy link
Collaborator

radar commented Oct 11, 2014

Thanks. Let's continue the discussion on #110.

@radar radar closed this as completed Oct 11, 2014
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

2 participants