|
|
|
@ -12,5 +12,6 @@ json.filesize number_to_human_size(attachment.filesize)
|
|
|
|
|
json.description attachment.description
|
|
|
|
|
json.downloads_count attachment.downloads_count
|
|
|
|
|
json.created_on attachment.created_on
|
|
|
|
|
json.content_type attachment.content_type
|
|
|
|
|
json.is_pdf attachment.is_pdf?
|
|
|
|
|
json.url attachment.is_pdf? ? download_url(attachment,disposition:"inline") : download_url(attachment)
|
|
|
|
|