From dd74da4c5574b4681ce3ca4a218dcdcc58add596 Mon Sep 17 00:00:00 2001 From: FinnIckler Date: Fri, 6 Sep 2024 15:52:53 +0200 Subject: [PATCH] run rubocop --- app/controllers/errors_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb index c29b193c..e38367f2 100644 --- a/app/controllers/errors_controller.rb +++ b/app/controllers/errors_controller.rb @@ -2,9 +2,9 @@ class ErrorsController < ApplicationController def show - exception = request.env["action_dispatch.exception"] + exception = request.env['action_dispatch.exception'] status_code = ActionDispatch::ExceptionWrapper.new(request.env, exception).status_code - request_id = request.env["action_dispatch.request_id"] + request_id = request.env['action_dispatch.request_id'] render json: { error: ErrorCodes::INTERNAL_SERVER_ERROR, request_id: request_id }, status: status_code end -end \ No newline at end of file +end