aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/per_thread_registry.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2015-12-17 15:52:49 +0100
committerDavid Heinemeier Hansson <david@loudthinking.com>2015-12-17 15:52:49 +0100
commitbb4a9e22b02bf954865309c5df1d9762af471973 (patch)
tree5ca5324325f2e1b89860618de90c0736bf971e16 /activesupport/lib/active_support/per_thread_registry.rb
parent529d05fed1737d30058339318626a32dc37ec463 (diff)
parent8a40cba66ae08c33ff062125b485fddd01f8264d (diff)
downloadrails-bb4a9e22b02bf954865309c5df1d9762af471973.tar.gz
rails-bb4a9e22b02bf954865309c5df1d9762af471973.tar.bz2
rails-bb4a9e22b02bf954865309c5df1d9762af471973.zip
Merge pull request #22630 from rails/attribute-accessors-per-thread
Add thread_m/cattr_accessor/reader/writer suite of methods for declaring class and module variables that live per-thread
Diffstat (limited to 'activesupport/lib/active_support/per_thread_registry.rb')
-rw-r--r--activesupport/lib/active_support/per_thread_registry.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/per_thread_registry.rb b/activesupport/lib/active_support/per_thread_registry.rb
index a909a65bb6..88e2b12cc7 100644
--- a/activesupport/lib/active_support/per_thread_registry.rb
+++ b/activesupport/lib/active_support/per_thread_registry.rb
@@ -1,6 +1,9 @@
require 'active_support/core_ext/module/delegation'
module ActiveSupport
+ # NOTE: This approach has been deprecated for end-user code in favor of thread_mattr_accessor and friends.
+ # Please use that approach instead.
+ #
# This module is used to encapsulate access to thread local variables.
#
# Instead of polluting the thread locals namespace: