instance method
instance
Ruby on Rails 5.2.8.1
Since v4.1.16 Last seen in v7.0.10Signature
instance()
No documentation comment.
Source
# File activesupport/lib/active_support/per_thread_registry.rb, line 46
def instance
Thread.current[@per_thread_registry_key] ||= new
end
Defined in activesupport/lib/active_support/per_thread_registry.rb line 46
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::PerThreadRegistry