method
connection_pools
v4.1.8 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::ConnectionHandler
connection_pools()public
No documentation available.
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 499
def connection_pools
ActiveSupport::Deprecation.warn(
"In the next release, this will return the same as #connection_pool_list. " "(An array of pools, rather than a hash mapping specs to pools.)"
)
Hash[connection_pool_list.map { |pool| [pool.spec, pool] }]
end