This project is archived and is in readonly mode.

Changeset [6ae0a0557d5e2859e359275b5feebb7e3c13271c] by Tarmo Tänav

August 26th, 2008 @ 05:25 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>