Sha256: 4af6d8791882f6382e7b150166786d50f5d85b48f4f85c42cfa4e222b9e6ee9c
Contents?: true
Size: 426 Bytes
Versions: 1
Compression:
Stored size: 426 Bytes
Contents
module Timber module Probes class ActiveSupportLogSubscriber < Probe module ActiveRecord def self.sql(log_subscriber, event, &_block) context1 = Contexts::SQLQueries::ActiveRecord.new(log_subscriber, event) context2 = Contexts::SQLQueries::ActiveRecordSpecific.new(log_subscriber, event) CurrentContext.add(context1, context2) { yield } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
timberio-1.0.0.beta1 | lib/timber/probes/active_support_log_subscriber/active_record.rb |