Method: ActiveRecord::ExplainSubscriber#ignore_payload?

Defined in:
lib/active_record/explain_subscriber.rb

#ignore_payload?(payload) ⇒ Boolean

Returns:

  • (Boolean)


25
26
27
28
29
30
# File 'lib/active_record/explain_subscriber.rb', line 25

def ignore_payload?(payload)
  payload[:exception] ||
    payload[:cached] ||
    IGNORED_PAYLOADS.include?(payload[:name]) ||
    !payload[:sql].match?(EXPLAINED_SQLS)
end