instance method
connection_pools
Ruby on Rails 4.0.13
Since v2.2.3Signature
connection_pools()
No documentation comment.
Source
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 504
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
Defined in activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb line 504
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::ConnectionHandler