Permalink
Browse files

Ensure shared default_scoping stack is duped before assigning to thre…

…ad local
  • Loading branch information...
josh committed Nov 16, 2008
1 parent 8c197fb commit e6c51051e4bbc1483ecc9e0837bb893197bbca83
Showing with 1 addition and 1 deletion.
  1. +1 −1 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:

0 comments on commit e6c5105

Please sign in to comment.