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 [35a114a8941cb22d29a536f1215a23a8cf7c4756] by David Chelimsky + Brian Tatnall

Revision 35a114a8941cb22d29a536f1215a23a8cf7c4756, committed by David Chelimsky + Brian Tatnall · May 15th, 2010 @ 07:38 AM

Modified default_scope to merge with any pre-existing default_scope
and added AR::Base::clear_default_scope

  • clear_default_scope provides users who rely on the old behaviour of each call to default_scope overwriting any previous default scopes an opportunity to maintain that behaviour.

[#4583 state:resolved]

Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/35a114a8941cb22d29a536f1215a23...

2 changed files

  • M activerecord/lib/active_record/base.rb
  • M activerecord/test/cases/method_scoping_test.rb