This project is archived and is in readonly mode.
Behavior of child_ids= setter in has_many :through :uniq associations
Reported by Kunal Shah | May 11th, 2009 @ 10:08 PM | in 3.x
Problem is mocked out here: http://pastie.org/474876
To me this does not seem to be the expected behavior of the setter with the uniq option set to false. If I am incorrect and this ticket is closed could the reasoning be explained?
Comments and changes to this ticket
-
Frederick Cheung May 12th, 2009 @ 02:44 PM
Well I don't thing rails is doing this on purpose - it's basically doing
foos << Foo.find(ids)
and find uniques the ids (ie it's not the association code that does this the uniquing just a (perhaps unintended) consequence of using find in this way.
-
Rohit Arondekar October 9th, 2010 @ 04:15 AM
- State changed from new to stale
- Importance changed from to
Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>