display images inline (#29056)

This commit is contained in:
Frédéric Péters 2018-12-14 13:36:15 +01:00
parent 84ab785186
commit 564291559f
1 changed files with 8 additions and 0 deletions

View File

@ -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