Jon Leighton
Programmer · Member of 1 project: Ruby on Rails
Jon Leighton's latest activity
Sunday, December 19 2010
-
Jon Leighton commented at 4:41 PMJust realised the file name of that patch says 2461. This is a mistake, but rest assured the patch is definitely concerned with this ticket and not a different ...
-
- Assigned user changed from Santiago Pastorino to Aaron Patterson
- Tag changed from hasmany, patch, primarykey, review to hasmany, patch, primarykey, review, verified
I have updated Szymon Nowak's patch to current master, and verified that it works correctly.
Note that two of the tests (test_associate_existing_with_nonstandar...
-
- Assigned user changed from Frederick Cheung to Aaron Patterson
- Tag changed from 3.0, :include, activerecord, bug, has_one, preload, through to 3.0, :include, activerecord, bug, has_one, patch, preload, through
- Importance changed from to
Here is an updated version of Will's test which applies cleanly to current master (the previous version did not). I have run it and can confirm that it passes, ...
-
- Assigned user set to Aaron Patterson
- Title changed from has_one through fails when setter is overridden using alias_method to has_one through doesn't work when going through a collection association
- Tag changed from 2.2.2, 3.0.0.beta, activerecord, alias_method, associations, bugmash, has_one_through, update_attributes, verified to 2.2.2, 3.0.0.beta, activerecord, alias_method, associations, bugmash, has_one_through, patch, update_attributes
This is not actually a problem with aliases at all.
The problem is with putting a
has_oneassociation:througha collection (i.e.has_many).HasOneThroughAssoci...
Thursday, December 16 2010
-
- Assigned user set to Aaron Patterson
- Tag changed from :through, :through_conditions, bugmash, has_many, has_many_through to :through, :through_conditions, bugmash, has_many, has_many_through, patch
I can confirm this. It affects queries involving joins, so while the above example using
countdoesn't quite seem to make sense, a query in the formFoo.joins(:...
-
- Assigned user set to Aaron Patterson
- Importance changed from to
This is fixed in master so it can be closed. The behaviour is captured by
test_inner_join_with_quoted_table_nameinhas_many_through_associations_test.rbandte...
-
- Assigned user set to Aaron Patterson
- Tag changed from activerecord, eager_loading, has_many_through, uniq to activerecord, eager_loading, has_many_through, patch, uniq
- Importance changed from to
Here is a patch which fixes this, with tests.
-
- Assigned user set to Aaron Patterson
- Importance changed from to
Can this ticket be closed or at least marked as stale please? If you look at
association_preload.rbin current master, you will see that it doesArray.wrap(asso...
-
Jon Leighton commented at 12:18 AMAlex, have you tried with the patch I just uploaded? That should fix it - the test 'test_has_many_through_with_custom_primary_key_on_belongs_to_source' is targe...