Class: Futurism::Resolver::Controller::Instrumentation

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/futurism/resolver/controller/instrumentation.rb

Constant Summary collapse

PARAMETERS_KEY =
ActionDispatch::Http::Parameters::PARAMETERS_KEY

Instance Method Summary collapse

Instance Method Details

#render(*args) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/futurism/resolver/controller/instrumentation.rb', line 9

def render(*args)
  ActiveSupport::Notifications.instrument(
    "render.futurism",
    channel: get_param(:channel),
    controller: get_param(:controller),
    action: get_param(:action),
    partial: extract_partial_name(*args)
  ) do
    super(*args)
  end
end