Method: GitHub::SQL#connection

Defined in:
lib/github/sql.rb

#connectionObject

Internal: The object we use to execute SQL and retrieve results. Defaults to AR::B.connection, but can be overridden with a “:connection” key when initializing a new instance.



308
309
310
# File 'lib/github/sql.rb', line 308

def connection
  @connection || ActiveRecord::Base.connection
end