This project is archived and is in readonly mode.

Changeset [35a114a8941cb22d29a536f1215a23a8cf7c4756] 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

Committed by David Chelimsky + Brian Tatnall

  • M activerecord/lib/active_record/base.rb
  • M activerecord/test/cases/method_scoping_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=""></a>