|
|
|
@ -15,3 +15,4 @@ 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)
|
|
|
|
|
json.play_url absolute_path(local_path(attachment))
|
|
|
|
|