Class: Atatus::Spies::TiltSpy Private
- Inherits:
-
Object
- Object
- Atatus::Spies::TiltSpy
- Defined in:
- lib/atatus/spies/tilt.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- TYPE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'template.tilt'
Instance Method Summary collapse
- #install ⇒ Object private
Instance Method Details
#install ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/atatus/spies/tilt.rb', line 27 def install if defined?(::Tilt) && defined?(::Tilt::Template) ::Tilt::Template.class_eval do alias render_without_apm render def render(*args, &block) name = [:__atatus_template_name] || 'Unknown template' Atatus.with_span name, TYPE do render_without_apm(*args, &block) end end end end end |