module FutureRecords::ThreadedConnectionRecorder

Public Instance Methods

new_connection() click to toggle source
Calls superclass method
# File lib/future_records.rb, line 60
def new_connection
  conn = super
  (Thread.current[:child_thread_connections] ||= []) << conn unless Thread.current == Thread.main
  conn
end