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 [16e93f2c3c3ca37d2bae9801b680b05f75c48c18] by Jon Leighton

Revision 16e93f2c3c3ca37d2bae9801b680b05f75c48c18, committed by Jon Leighton · December 15th, 2010 @ 07:03 PM

Respect the default_scope on a join model when reading a through association
https://github.com/rails/rails/commit/16e93f2c3c3ca37d2bae9801b680b...

8 changed files

  • M activerecord/lib/active_record/associations/has_many_through_association.rb
  • M activerecord/lib/active_record/associations/has_one_through_association.rb
  • M activerecord/lib/active_record/associations/through_association_scope.rb
  • M activerecord/test/cases/associations/has_many_through_associations_test.rb
  • M activerecord/test/cases/associations/has_one_through_associations_test.rb
  • M activerecord/test/models/author.rb
  • M activerecord/test/models/contract.rb
  • M activerecord/test/models/post.rb