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 167 def active_connection? @reserved_connections.key? current_connection_id end