diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-11-16 13:51:04 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-11-16 13:52:21 -0600 |
commit | e6c51051e4bbc1483ecc9e0837bb893197bbca83 (patch) | |
tree | a272589611a58b407d8dc47bb1959ed0982639e9 /activerecord/lib/active_record/base.rb | |
parent | 8c197fb4ab4fa432a6e9421e0339a17a7ec296f1 (diff) | |
download | rails-e6c51051e4bbc1483ecc9e0837bb893197bbca83.tar.gz rails-e6c51051e4bbc1483ecc9e0837bb893197bbca83.tar.bz2 rails-e6c51051e4bbc1483ecc9e0837bb893197bbca83.zip |
Ensure shared default_scoping stack is duped before assigning to thread local
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-x | 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 d8b7a5a931..68f44ef0f6 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -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: |