aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activesupport/lib/active_support/core_ext/thread.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/thread.rb b/activesupport/lib/active_support/core_ext/thread.rb
index de752f14ef..878ec73ef0 100644
--- a/activesupport/lib/active_support/core_ext/thread.rb
+++ b/activesupport/lib/active_support/core_ext/thread.rb
@@ -65,7 +65,7 @@ class Thread
private
def _locals
- if defined?(@locals)
+ if defined?(@_locals)
@_locals
else
LOCK.synchronize { @_locals ||= {} }