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?

Show source
Register or log in to add new notes.