instance method
instrument
Ruby on Rails 5.0.7.2
Since v4.1.16 Last seen in v8.1.3.1Signature
instrument(action, &block)
No documentation comment.
Parameters
-
actionreq -
blockblock
Source
# File actionview/lib/action_view/template.rb, line 350
def instrument(action, &block)
payload = { virtual_path: @virtual_path, identifier: @identifier }
case action
when "!render_template".freeze
ActiveSupport::Notifications.instrument("!render_template.action_view".freeze, payload, &block)
else
ActiveSupport::Notifications.instrument("#{action}.action_view".freeze, payload, &block)
end
end
Defined in actionview/lib/action_view/template.rb line 350
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Template