From 7c9bee3fce387bd693cef273934b49b63e9a1044 Mon Sep 17 00:00:00 2001 From: Jack S Date: Wed, 17 May 2023 12:26:23 +0100 Subject: [PATCH] Remove destroy from API actions --- app/controllers/logs_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/logs_controller.rb b/app/controllers/logs_controller.rb index 12156d5aa..099584873 100644 --- a/app/controllers/logs_controller.rb +++ b/app/controllers/logs_controller.rb @@ -36,7 +36,7 @@ private raise "implement in sub class" end - API_ACTIONS = %w[create show update destroy].freeze + API_ACTIONS = %w[create show update].freeze def json_api_request? API_ACTIONS.include?(request["action"]) && request.format.json?