
Association problem when filtering with conditions
Reported by Cameron Matheson | August 7th, 2009 @ 10:39 AM | in 0.10.0
I have a model (MegaMan) that is has many children (ArmCannons). There is a method in my model that grabs the cannon that satisfies certain conditions (a date, in this case). For some reason, when iterating over the entire collection of Mega Men, the method always returns the cannon associated with the first Mega Man instead of the Mega Man currently in scope.
I've attached a test case that I hope is more clear than the above description.
Comments and changes to this ticket
-
Martin Gamsjaeger (snusnu) August 18th, 2009 @ 09:05 AM
- State changed from new to resolved
- Milestone set to 0.10.0
Cameron,
I ran your test against latest next branch and all tests pass. I get: 2 tests, 4 assertions, 0 failures, 0 errors
Marking this as resolved
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 »