Sha256: 9f0e007b6630b44d447855fd29b1684d5122c230fb2b2444c22e2038dded8568
Contents?: true
Size: 498 Bytes
Versions: 10
Compression:
Stored size: 498 Bytes
Contents
module ActiveRecord module SqlAnalyzer module Monkeypatches module Tagger def initialize(*) super @_ar_analyzer_tag = nil end def with_tag(name) @_ar_analyzer_tag = name self end def exec_queries Thread.current[:_ar_analyzer_tag] ||= @_ar_analyzer_tag super ensure Thread.current[:_ar_analyzer_tag] = nil if @_ar_analyzer_tag end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems