Module: FutureRecords::ThreadedConnectionRecorder

Defined in:
lib/future_records.rb

Instance Method Summary collapse

Instance Method Details

#new_connectionObject



60
61
62
63
64
# 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