Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ensure shared default_scoping stack is duped before assigning to thre…

…ad local
  • Loading branch information...
commit e6c51051e4bbc1483ecc9e0837bb893197bbca83 1 parent 8c197fb
@josh josh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/base.rb
View
2  activerecord/lib/active_record/base.rb
@@ -2045,7 +2045,7 @@ def scope(method, key = nil) #:nodoc:
end
def scoped_methods #:nodoc:
- Thread.current[:"#{self}_scoped_methods"] ||= self.default_scoping
+ Thread.current[:"#{self}_scoped_methods"] ||= self.default_scoping.dup
end
def current_scoped_methods #:nodoc:
Please sign in to comment.
Something went wrong with that request. Please try again.