From 748b21db8ff850378b20a69ccd4215c06abea03e Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 17 Dec 2015 14:28:19 +0100 Subject: Add thread_m/cattr_accessor/reader/writer suite of methods for declaring class and module variables that live per-thread --- activesupport/lib/active_support/per_thread_registry.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'activesupport/lib/active_support/per_thread_registry.rb') 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: -- cgit v1.2.3