class method
self.extended
Ruby on Rails 7.0.10
Since v4.1.16 Last seen in v7.0.10Signature
self.extended(object)
No documentation comment.
Parameters
-
objectreq
Source
# File activesupport/lib/active_support/per_thread_registry.rb, line 42
def self.extended(object)
ActiveSupport::Deprecation.warn(<<~MSG)
ActiveSupport::PerThreadRegistry is deprecated and will be removed in Rails 7.1.
Use `Module#thread_mattr_accessor` instead.
MSG
object.instance_variable_set :@per_thread_registry_key, object.name.freeze
end
Defined in activesupport/lib/active_support/per_thread_registry.rb line 42
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::PerThreadRegistry