aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/app/controllers/active_storage
diff options
context:
space:
mode:
Diffstat (limited to 'activestorage/app/controllers/active_storage')
-rw-r--r--activestorage/app/controllers/active_storage/direct_uploads_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/app/controllers/active_storage/direct_uploads_controller.rb b/activestorage/app/controllers/active_storage/direct_uploads_controller.rb
index cbe2cf2c35..78b43fc94c 100644
--- a/activestorage/app/controllers/active_storage/direct_uploads_controller.rb
+++ b/activestorage/app/controllers/active_storage/direct_uploads_controller.rb
@@ -15,7 +15,7 @@ class ActiveStorage::DirectUploadsController < ActiveStorage::BaseController
end
def direct_upload_json(blob)
- blob.as_json(methods: :signed_id).merge(direct_upload: {
+ blob.as_json(root: false, methods: :signed_id).merge(direct_upload: {
url: blob.service_url_for_direct_upload,
headers: blob.service_headers_for_direct_upload
})