Commit 5ffb073cb3d1f1b673b928a413307a8b0ca80cd4

Authored by Rodrigo Souto
1 parent 6f052859

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 50 nil
51 51 end
52 52  
  53 + def download?(view=nil)
  54 + false
  55 + end
  56 +
53 57 def short_description
54 58 file_type = if content_type.present?
55 59 content_type.sub(/^application\//, '').sub(/^x-/, '').sub(/^image\//, '')
... ...