Sha256: d562f3f88e354af4a57811dce27f8e797cb33fad3f482a0688698c2704da31f5
Contents?: true
Size: 742 Bytes
Versions: 1
Compression:
Stored size: 742 Bytes
Contents
module Timber module Probes class ActiveSupportLogSubscriber < Probe class ActionView def self.render_collection(_log_subscriber, event, &_block) wrap(event) { yield } end def self.render_partial(_log_subscriber, event, &_block) wrap(event) { yield } end def self.render_template(_log_subscriber, event, &_block) wrap(event) { yield } end private def self.wrap(event, &_block) context1 = Contexts::TemplateRenders::ActionView.new(event) context2 = Contexts::TemplateRenders::ActionViewSpecific.new(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/action_view.rb |