vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
def connection
        if conn = @reserved_connections[current_connection_id]
          conn
        else
          @reserved_connections[current_connection_id] = checkout
        end
      end
# Retrieve the connection associated with the current thread, or call
# #checkout to obtain one if necessary.
#
# #connection can be called any number of times; the connection is
# held in a hash keyed by the thread id.
Retrieve the connection associated with the current thread, or call
checkout to obtain one if necessary.

connection can be called any number of times; the connection is
held in a hash keyed by the thread id.
Retrieve the connection associated with the current thread or call checkout to obtain one if necessary . connection can be called any number of times ; the connection is held in a hash keyed by the thread id .
def connection
        if conn = @reserved_connections[current_connection_id]
          conn
        else
          @reserved_connections[current_connection_id] = checkout
        end
      end
def connection if conn = @reserved_connections [ current_connection_id ] conn else @reserved_connections [ current_connection_id ] = checkout end end
Retrieve the connection associated with the current thread, or call
checkout to obtain one if necessary.
Retrieve the connection associated with the current thread or call checkout to obtain one if necessary .