diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-18 20:00:03 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-18 20:00:03 +0000 |
commit | dacddd989720ad4bffc407eaef0d1fb50a406657 (patch) | |
tree | 2d2dc66944481c69e1a318d5fa487a04919dc7cb /app/controllers/attachments_controller.rb | |
parent | 1d783106a34bb9216762d5bc50d9d9583fbc08bf (diff) | |
download | redmine-dacddd989720ad4bffc407eaef0d1fb50a406657.tar.gz redmine-dacddd989720ad4bffc407eaef0d1fb50a406657.zip |
Fix in AttachmentsController#show.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2282 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/attachments_controller.rb')
-rw-r--r-- | app/controllers/attachments_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |