display images inline (#29056)
This commit is contained in:
parent
84ab785186
commit
564291559f
|
@ -34,6 +34,14 @@ module AttachmentsControllerPatch
|
|||
end
|
||||
end
|
||||
|
||||
def disposition(attachment)
|
||||
if attachment.is_pdf? || attachment.is_image?
|
||||
'inline'
|
||||
else
|
||||
'attachment'
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Reference in New Issue