@@ -29,7 +29,7 class AttachmentsController < ApplicationController | |||||
29 | elsif @attachment.is_text? |
|
29 | elsif @attachment.is_text? | |
30 | @content = File.new(@attachment.diskfile, "rb").read |
|
30 | @content = File.new(@attachment.diskfile, "rb").read | |
31 | render :action => 'file' |
|
31 | render :action => 'file' | |
32 |
els |
|
32 | else | |
33 | download |
|
33 | download | |
34 | end |
|
34 | end | |
35 | end |
|
35 | end |
General Comments 0
You need to be logged in to leave comments.
Login now