From b24f5040506adfa27aece7e410bd399478a330d4 Mon Sep 17 00:00:00 2001 From: "Jon R. Humphrey" Date: Wed, 28 Aug 2024 11:40:11 +0100 Subject: [PATCH] refactor: expand argument name for readability expansion of the `exp` var to `exception` in the `instrument_internal_error` metric subscriber --- app/controllers/application_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index cfc2891..aba30ba 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -32,7 +32,7 @@ def change_default_caching_policy # @param [Exception] exp the exception that caused the error # @return [ActiveSupport::Notifications::Event] provides an object-oriented # interface to the event - def instrument_internal_error(exp) - ActiveSupport::Notifications.instrument('internal_error.application', exception: exp) + def instrument_internal_error(exception) + ActiveSupport::Notifications.instrument('internal_error.application', exception: exception) end end