From dacddd989720ad4bffc407eaef0d1fb50a406657 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 18 Jan 2009 20:00:03 +0000 Subject: [PATCH] Fix in AttachmentsController#show. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2282 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/attachments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index c10834c11..c55e8de25 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -29,7 +29,7 @@ class AttachmentsController < ApplicationController elsif @attachment.is_text? @content = File.new(@attachment.diskfile, "rb").read render :action => 'file' - elsif + else download end end -- 2.39.5