
has n through doesn't load associations correctly with .all
Reported by embwbam | July 27th, 2009 @ 07:50 AM
http://pastie.textmate.org/560165
Run the above example, then check it out in irb. If you fetch the posts with one = Post.first, then print out one.tags, it shows both tags. If you use posts = Post.all, then one = posts[0], however, one.tags will show you only the first tag assignment, and posts[1].tags will show you the other tag.
It seems to be mixing up the associations when loaded lazily.
Comments and changes to this ticket
-
Martin Gamsjaeger (snusnu) July 30th, 2009 @ 04:42 PM
- State changed from new to unconfirmed
- Milestone set to 0.10.0
What version are you running? I ran a slightly modified (but i guess semantically equivalent) version of your original pastie on current next branches and everything works fine. Here's what I did: http://pastie.org/565889
Marking this unconfirmed.
-
Dan Kubb (dkubb) August 11th, 2009 @ 11:06 AM
- State changed from unconfirmed to hold
Marking this as on-hold until original submitter responds to question.
If there is no response by August 30th, mark as not-applicable.
-
Dan Kubb (dkubb) August 11th, 2009 @ 11:09 AM
- Milestone cleared.
Removing from 0.10 milestone until reproducible.
-
Dan Kubb (dkubb) November 6th, 2009 @ 02:11 AM
- State changed from hold to not-applicable
Marking as not-applicable due to no response from submitter.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »