Fix in AttachmentsController#show.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2282 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
1d783106a3
commit
dacddd9897
|
@ -29,7 +29,7 @@ class AttachmentsController < ApplicationController
|
||||||
elsif @attachment.is_text?
|
elsif @attachment.is_text?
|
||||||
@content = File.new(@attachment.diskfile, "rb").read
|
@content = File.new(@attachment.diskfile, "rb").read
|
||||||
render :action => 'file'
|
render :action => 'file'
|
||||||
elsif
|
else
|
||||||
download
|
download
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue