Change to asset_download_path in Asset Serializer [SCI-9806]

This commit is contained in:
Ivan Kljun 2024-01-09 09:44:00 +01:00
parent d680b3a256
commit 245c848c99

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),