mirror of https://github.com/rails/rails
Add explicit rendering to DiskController#update
This avoids unhelpful messages in the logs: ``` No template found for ActiveStorage::DiskController#update, rendering head :no_content ```
This commit is contained in:
parent
1b0c914133
commit
31780364b7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue