This project is archived and is in readonly mode.
Changeset [a445cdd8840c4e99c40c6d5b15ab380d39a56be3] 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...
Committed by Tarmo Tänav
- 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
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>