vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
def with_connection
        conn = checkout
        yield conn
      ensure
        checkin conn
      end
# Reserve a connection, and yield it to a block. Ensure the connection is
# checked back in when finished.
Reserve a connection, and yield it to a block. Ensure the connection is
checked back in when finished.
Reserve a connection and yield it to a block . Ensure the connection is checked back in when finished .
def with_connection
        conn = checkout
        yield conn
      ensure
        checkin conn
      end
def with_connection conn = checkout yield conn ensure checkin conn end
Reserve a connection, and yield it to a block.
Reserve a connection and yield it to a block .