Module: IoMonitor::FutureResultPatch

Defined in:
lib/io_monitor/patches/future_result_patch.rb

Instance Method Summary collapse

Instance Method Details

#resultObject



5
6
7
8
9
10
11
12
13
# File 'lib/io_monitor/patches/future_result_patch.rb', line 5

def result
  # @event_buffer is used to send ActiveSupport notifications related to async queries
  return super unless @event_buffer

  res = super
  ActiveRecordAdapter.aggregate_result rows: res.rows

  res
end