diff options
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rw-r--r-- | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 879f02ff6a..6720f0687a 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1145,7 +1145,7 @@ MSG def current_scoped_methods #:nodoc: method = scoped_methods.last if method.respond_to?(:call) - unscoped(&method) + relation.scoping { method.call } else method end |