mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
Ensure shared default_scoping stack is duped before assigning to thread local
This commit is contained in:
@@ -2045,7 +2045,7 @@ module ActiveRecord #: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:
|
||||
|
||||
Reference in New Issue
Block a user