From fdf359d8eb35de692bcf294f4cf323267d5e4cf0 Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Fri, 18 Dec 2015 12:43:03 +0100 Subject: [ci skip] Revert most of ff851017 We went back to `Thread.current[]` in 33e11e59. --- .../active_support/core_ext/module/attribute_accessors_per_thread.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activesupport') diff --git a/activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb b/activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb index e211772658..8a7e6776da 100644 --- a/activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb +++ b/activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb @@ -15,7 +15,7 @@ class Module # end # # Current.user # => nil - # Thread.current.thread_variable_set("attr_Current_user", "DHH") + # Thread.current[:attr_Current_user] = "DHH" # Current.user # => "DHH" # # The attribute name must be a valid method name in Ruby. @@ -63,7 +63,7 @@ class Module # end # # Current.user = "DHH" - # Thread.current.thread_variable_get("attr_Current_user") # => "DHH" + # Thread.current[:attr_Current_user] # => "DHH" # # If you want to opt out the instance writer method, pass # instance_writer: false or instance_accessor: false. -- cgit v1.2.3