Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [6ae0a0557d5e2859e359275b5feebb7e3c13271c] by Tarmo Tänav

Revision 6ae0a0557d5e2859e359275b5feebb7e3c13271c, committed 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...

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