mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 21:21:50 +08:00
Change to asset_download_path in Asset Serializer [SCI-9806]
This commit is contained in:
parent
d680b3a256
commit
245c848c99
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue