method
release_connection

release_connection(owner_thread = Thread.current)
public
Signal that the thread is finished with the current connection. #release_connection releases the connection-thread association and returns the connection to the pool.
This method only works for connections that have been obtained through #connection or #with_connection methods, connections obtained through #checkout will not be automatically released.