Commit 5ffb073cb3d1f1b673b928a413307a8b0ca80cd4
1 parent
6f052859
Exists in
master
and in
28 other branches
file-presenter: file presenter always displays an html version of the file with …
…the link to the original file
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
lib/file_presenter.rb
@@ -50,6 +50,10 @@ class FilePresenter | @@ -50,6 +50,10 @@ class FilePresenter | ||
50 | nil | 50 | nil |
51 | end | 51 | end |
52 | 52 | ||
53 | + def download?(view=nil) | ||
54 | + false | ||
55 | + end | ||
56 | + | ||
53 | def short_description | 57 | def short_description |
54 | file_type = if content_type.present? | 58 | file_type = if content_type.present? |
55 | content_type.sub(/^application\//, '').sub(/^x-/, '').sub(/^image\//, '') | 59 | content_type.sub(/^application\//, '').sub(/^x-/, '').sub(/^image\//, '') |