active_connection?()
Check to see if there is an active connection in this connection pool.
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 100 def active_connection? active_connections.any? end