instance method
connection_pools
Ruby on Rails 4.2.9
Since v2.2.3Signature
connection_pools()
No documentation comment.
Source
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 527
def connection_pools
ActiveSupport::Deprecation.warn(<<-MSG.squish)
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.)
MSG
Hash[connection_pool_list.map { |pool| [pool.spec, pool] }]
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb line 527
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::ConnectionHandler