|
|
@ -10,3 +10,4 @@ json.created_on attachment.created_on
|
|
|
|
json.is_pdf attachment.is_history_pdf?
|
|
|
|
json.is_pdf attachment.is_history_pdf?
|
|
|
|
json.url attachment.is_history_pdf? ? attachment_path(attachment, type: 'history',disposition:"inline") : attachment_path(attachment, type: 'history')
|
|
|
|
json.url attachment.is_history_pdf? ? attachment_path(attachment, type: 'history',disposition:"inline") : attachment_path(attachment, type: 'history')
|
|
|
|
json.attachment_id attachment.attachment_id
|
|
|
|
json.attachment_id attachment.attachment_id
|
|
|
|
|
|
|
|
json.content_type attachment.content_type
|
|
|
|