diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2015-12-18 12:43:03 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2015-12-18 12:43:03 +0100 |
commit | fdf359d8eb35de692bcf294f4cf323267d5e4cf0 (patch) | |
tree | 130c1989e50eee6502cf8b4916ead7a31058e9f7 | |
parent | 49f2f0988ba5de7bf51602a1efeadc168dbbf58d (diff) | |
download | rails-fdf359d8eb35de692bcf294f4cf323267d5e4cf0.tar.gz rails-fdf359d8eb35de692bcf294f4cf323267d5e4cf0.tar.bz2 rails-fdf359d8eb35de692bcf294f4cf323267d5e4cf0.zip |
[ci skip] Revert most of ff851017
We went back to `Thread.current[]` in 33e11e59.
-rw-r--r-- | activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 # <tt>instance_writer: false</tt> or <tt>instance_accessor: false</tt>. |