From ada46173800befc1baca0794770ae9126fb6d830 Mon Sep 17 00:00:00 2001 From: Paul McKissock Date: Mon, 1 Jul 2024 16:17:20 -0400 Subject: [PATCH] [#27] Standardrb --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index de24b79..757c919 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -20,7 +20,7 @@ def authorized unless logged_in? respond_to do |format| format.html { redirect_to login_path, alert: "You must be logged in to perform that action." } - format.json { render json: { error: "Unauthorized" }, status: :unauthorized } + format.json { render json: {error: "Unauthorized"}, status: :unauthorized } end end end