class method
self.new
Ruby on Rails 7.0.10
Since v2.2.3Signature
self.new()
No documentation comment.
Source
# File activerecord/lib/active_record/connection_adapters/abstract/connection_handler.rb, line 75
def initialize
# These caches are keyed by pool_config.connection_specification_name (PoolConfig#connection_specification_name).
@owner_to_pool_manager = Concurrent::Map.new(initial_capacity: 2)
# Backup finalizer: if the forked child skipped Kernel#fork the early discard has not occurred
ObjectSpace.define_finalizer self, FINALIZER
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/connection_handler.rb line 75
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::ConnectionHandler