Class: Promenade::Client::Rack::RequestControllerActionLabeler

Inherits:
RequestLabeler
  • Object
show all
Defined in:
lib/promenade/client/rack/request_controller_action_labeler.rb

Constant Summary collapse

PATH_PARAMS_KEY =
"action_dispatch.request.path_parameters".freeze

Instance Method Summary collapse

Methods included from SingletonCaller

#initialize_singleton, #singleton

Instance Method Details

#call(env) ⇒ Object



22
23
24
25
26
27
# File 'lib/promenade/client/rack/request_controller_action_labeler.rb', line 22

def call(env)
  super.merge({
    controller_action: controller_action_from_env(env),
    method: env[REQUEST_METHOD].to_s.downcase,
  })
end