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

Add link table test for update method call #442

Open
wants to merge 5 commits into
base: core
Choose a base branch
from

Conversation

AndrewPratley
Copy link

@AndrewPratley AndrewPratley commented May 20, 2018

I'm not sure if this is expected behaviour, but I noticed this while working with paranoia in one of our projects at work.

If you use .update on class that has a has_many :through relationship, and you are removing related items, the link table record will be destroyed (read: really_destroyed) even though it has acts_as_paranoid on the model.

This fixes that issue.

Thanks.

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 this pull request may close these issues.

None yet

2 participants