From 31780364b78dc24c712db3d9dc13fa1294f02ba1 Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Fri, 17 Sep 2021 13:32:28 -0500 Subject: [PATCH] Add explicit rendering to DiskController#update This avoids unhelpful messages in the logs: ``` No template found for ActiveStorage::DiskController#update, rendering head :no_content ``` --- activestorage/app/controllers/active_storage/disk_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/activestorage/app/controllers/active_storage/disk_controller.rb b/activestorage/app/controllers/active_storage/disk_controller.rb index 4283c7a9e7..5c372b3384 100644 --- a/activestorage/app/controllers/active_storage/disk_controller.rb +++ b/activestorage/app/controllers/active_storage/disk_controller.rb @@ -23,6 +23,7 @@ class ActiveStorage::DiskController < ActiveStorage::BaseController if token = decode_verified_token if acceptable_content?(token) named_disk_service(token[:service_name]).upload token[:key], request.body, checksum: token[:checksum] + head :no_content else head :unprocessable_entity end