aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorNick Howard <ndh@baroquebobcat.com>2013-08-19 12:39:40 -0600
committerNick Howard <ndh@baroquebobcat.com>2013-08-19 12:39:40 -0600
commitdfb923e6e52d1fed768672b5b7e6277a599f136a (patch)
tree569fcad510dfd2e3efae0e4b849eb3c89ee2cb1d /activesupport/lib/active_support
parent55360ddf7fd5f3fedc327476bf07aac3ba698e0d (diff)
downloadrails-dfb923e6e52d1fed768672b5b7e6277a599f136a.tar.gz
rails-dfb923e6e52d1fed768672b5b7e6277a599f136a.tar.bz2
rails-dfb923e6e52d1fed768672b5b7e6277a599f136a.zip
ensure freeze on Thread freezes locals
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/core_ext/thread.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/thread.rb b/activesupport/lib/active_support/core_ext/thread.rb
index 878ec73ef0..e80f442973 100644
--- a/activesupport/lib/active_support/core_ext/thread.rb
+++ b/activesupport/lib/active_support/core_ext/thread.rb
@@ -62,6 +62,11 @@ class Thread
_locals.has_key?(key.to_sym)
end
+ def freeze
+ _locals.freeze
+ super
+ end
+
private
def _locals