Module: ViewComponent::Chain
- Defined in:
- lib/new_relic/agent/instrumentation/view_component/chain.rb
Class Method Summary collapse
Class Method Details
.instrument! ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/new_relic/agent/instrumentation/view_component/chain.rb', line 7 def self.instrument! ::ViewComponent::Base.class_eval do include NewRelic::Agent::Instrumentation::ViewComponent alias_method(:render_in_without_tracing, :render_in) def render_in(*args) render_in_with_tracing(*args) do render_in_without_tracing(*args) end end end end |