Merge pull request #6910 from ivanscinote/SCI-9806-ik

Change to asset_download_path in Asset Serializer [SCI-9806]
This commit is contained in:
Martin Artnik 2024-01-09 10:01:57 +01:00 committed by GitHub
commit 1a8e9c48ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,7 +120,7 @@ class AssetSerializer < ActiveModel::Serializer
def urls
urls = {
preview: asset_file_preview_path(object),
download: (rails_blob_path(object.file, disposition: 'attachment') if attached),
download: (asset_download_path(object) if attached),
load_asset: load_asset_path(object),
asset_file: asset_file_url_path(object),
marvin_js: marvin_js_asset_path(object),