Method: ActiveRecord::ExplainSubscriber#finish

Defined in:
lib/active_record/explain_subscriber.rb

#finish(name, id, payload) ⇒ Object



12
13
14
15
16
# File 'lib/active_record/explain_subscriber.rb', line 12

def finish(name, id, payload)
  if ExplainRegistry.collect? && !ignore_payload?(payload)
    ExplainRegistry.queries << payload.values_at(:sql, :binds)
  end
end