class Skylight::Core::Probes::Tilt::Probe
Public Instance Methods
install()
click to toggle source
# File lib/skylight/core/probes/tilt.rb, line 6 def install ::Tilt::Template.class_eval do alias_method :render_without_sk, :render def render(*args, &block) opts = { category: "view.render.template", title: options[:sky_virtual_path] || basename || "Unknown template name" } Skylight::Core::Fanout.instrument(opts) do render_without_sk(*args, &block) end end end end
render(*args, &block)
click to toggle source
# File lib/skylight/core/probes/tilt.rb, line 10 def render(*args, &block) opts = { category: "view.render.template", title: options[:sky_virtual_path] || basename || "Unknown template name" } Skylight::Core::Fanout.instrument(opts) do render_without_sk(*args, &block) end end