Module: Skylight::Probes::ActionView::Instrumentation Private
- Defined in:
- lib/skylight/probes/action_view.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#render_with_layout(*args) ⇒ Object
private
:nodoc:.
Instance Method Details
#render_with_layout(*args) ⇒ 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.
:nodoc:
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/skylight/probes/action_view.rb', line 7 def render_with_layout(*args) #:nodoc: path, locals = case args.length when 2 args when 4 # Rails > 6.0.0.beta3 arguments are (view, template, path, locals) [args[2], args[3]] end layout = nil layout = find_layout(path, locals.keys, [formats.first]) if path if layout ActiveSupport::Notifications.instrument("render_template.action_view", identifier: layout.identifier) do super end else super end end |