This project is archived and is in readonly mode.
Changeset [8572ae6671c6ec7c2524f327cee82215896e5648] by Jon Leighton
Revision 8572ae6671c6ec7c2524f327cee82215896e5648,
committed by Jon Leighton
· April 13th, 2011 @ 03:46 AM
Evaluate default scopes at the last possible moment in order to
avoid problems with default scopes getting included into other
scopes and then being unable to remove the default part via
unscoped.
https://github.com/rails/rails/commit/8572ae6671c6ec7c2524f327cee82...
10 changed files
-
M
activerecord/CHANGELOG -
M
activerecord/lib/active_record/base.rb -
M
activerecord/lib/active_record/named_scope.rb -
M
activerecord/lib/active_record/relation.rb -
M
activerecord/lib/active_record/relation/query_methods.rb -
M
activerecord/lib/active_record/relation/spawn_methods.rb -
M
activerecord/test/cases/base_test.rb -
M
activerecord/test/cases/relation_scoping_test.rb -
M
activerecord/test/cases/relation_test.rb -
M
activerecord/test/models/developer.rb