module ViewComponent::Instrumentation
Public Class Methods
included(mod)
click to toggle source
# File lib/view_component/instrumentation.rb, line 7 def self.included(mod) mod.prepend(self) end
Public Instance Methods
render_in(view_context, &block)
click to toggle source
Calls superclass method
# File lib/view_component/instrumentation.rb, line 11 def render_in(view_context, &block) ActiveSupport::Notifications.instrument( "!render.view_component", name: self.class.name, identifier: self.class.identifier ) do super(view_context, &block) end end