method

active_connection?

active_connection?()
public

Is there an open connection that is being used for the current thread?

This method only works for connections that have been obtained through #connection or #with_connection methods, connections obtained through #checkout will not be detected by #active_connection?