This project is archived and is in readonly mode.
Changeset [a445cdd8840c4e99c40c6d5b15ab380d39a56be3] by Tarmo Tänav
Revision a445cdd8840c4e99c40c6d5b15ab380d39a56be3,
committed by Tarmo Tänav
· August 26th, 2008 @ 05:23 AM
Load the first and not the last has_one result when doing join-based eager loading
This matters when the has_one is defined with an order in which case there is an expectation that the first one will be loaded.
[#904 state:resolved]
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...
3 changed files
-
M
activerecord/lib/active_record/associations.rb -
M
activerecord/test/cases/associations/eager_test.rb -
M
activerecord/test/cases/associations/has_one_through_associations_test.rb