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 [236f0bb67adecbc1e6dac5258e4a8cb310ffd7a4] by Frederick Cheung

Revision 236f0bb67adecbc1e6dac5258e4a8cb310ffd7a4, committed by Repository · May 11th, 2008 @ 10:14 PM

When preloading group by reflection rather than by class [#125 state:resolved]

This avoids extra queries when several subclasses inherit the association

from their parent class, while still coping with subclasses redefining

associations.

Signed-off-by: Pratik Naik

http://github.com/rails/rails/co...

2 changed files

  • M activerecord/lib/active_record/association_preload.rb
  • M activerecord/test/cases/associations/eager_test.rb