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