This project is archived and is in readonly mode.
Has Many Association With Conditions And Dependant Throws Error
-
Sascha Konietzke
I can confirm this, the same error occurred for me when upgrading to 2.3.5.
-
Danny Tipple
- Tag changed from activerecord, has_many to activerecord, active_record, has_many
-
Danny Tipple
This is actually fixed in 3.0 beta3 but still broken in the 2.3 branch.
-
Rizwan Reza
- No changes were found…
-
Rizwan Reza
- No changes were found…
-
Rizwan Reza
- Milestone set to 2.3.6
-
Grant Ammons
- Importance changed from to High
I believe this is fixed in 2.3.8. I created some tests around the bug and indeed it is a problem in the 2.3.5 branch, however the test passes cleanly in 2.3.8 and 2-3-stable.
Patch attached, against 2-3-stable branch. Also applies cleanly to v2.3.8, however needs a bit if finagling to apply to 2.3.5.
-
Neeraj Singh
- State changed from new to open
- Tag changed from activerecord, active_record, has_many to activerecord, active_record, has_many, patch
- Assigned user set to José Valim
- Importance changed from High to Low
+1
applied this patch in 2-3-stable branch and all the tests are passing.
-
José Valim
- State changed from open to duplicate
It would be appropriate to find out when it got fixed and if the original fix already included tests (it probably did). Particularly, the current test name in the patch:
test_has_many_associations_thingycould be improved, since it does not reveal any intent.
