From 5ffb073cb3d1f1b673b928a413307a8b0ca80cd4 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Mon, 31 Mar 2014 22:21:23 +0000 Subject: [PATCH] file-presenter: file presenter always displays an html version of the file with the link to the original file --- lib/file_presenter.rb | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/lib/file_presenter.rb b/lib/file_presenter.rb index f0e926d..d456882 100644 --- a/lib/file_presenter.rb +++ b/lib/file_presenter.rb @@ -50,6 +50,10 @@ class FilePresenter nil end + def download?(view=nil) + false + end + def short_description file_type = if content_type.present? content_type.sub(/^application\//, '').sub(/^x-/, '').sub(/^image\//, '') -- libgit2 0.21.2