class RailsBand::ActiveRecord::LogSubscriber

The custom LogSubscriber for ActiveRecord.

def consumer_of(sub_event)

def consumer_of(sub_event)
  consumers[:"#{sub_event}.active_record"] || consumers[:active_record] || consumers[:default]
end

def instantiation(event)

def instantiation(event)
  consumer_of(__method__)&.call(Event::Instantiation.new(event))
end

def sql(event)

def sql(event)
  consumer_of(__method__)&.call(Event::Sql.new(event))
end

def strict_loading_violation(event)

def strict_loading_violation(event)
  consumer_of(__method__)&.call(Event::StrictLoadingViolation.new(event))
end