Use inline for all text and images

This commit is contained in:
Joshua Peek
2011-06-03 11:37:08 -05:00
parent 2d80f24662
commit 786cd25cbf

View File

@@ -62,7 +62,7 @@ module Linguist
#
# Returns a content disposition String.
def disposition
if image? || viewable?
if text? || image?
'inline'
else
"attachment; filename=#{EscapeUtils.escape_url(pathname.basename)}"