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 for incorrect argument handling in delete accessor of Many association #320

Merged
merged 2 commits into from
Sep 13, 2013

Conversation

kvanwagenen
Copy link
Contributor

The delete accessor of the Many association wasn't correctly handling the removal of several associations when it was passed an array. It set the Associations variable incorrectly, so the conditions were being built wrong and no records were being deleted. I replaced the old argument handling logic with the more robust logic used in the add accessor.

@dxg
Copy link
Collaborator

dxg commented Sep 3, 2013

Thanks.

Could you add a test case? Someone might inadvertantly break it in future if it's not tested..

@dresende
Copy link
Owner

I'm going to accept this and add a test.

dresende added a commit that referenced this pull request Sep 13, 2013
Fix for incorrect argument handling in delete accessor of Many association
@dresende dresende merged commit 7146c7d into dresende:master Sep 13, 2013
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.

3 participants