Fixed exports and other file downloads

This commit is contained in:
Alexey Verkhovsky 2005-08-15 00:24:15 +00:00
parent 0f35016069
commit 7493bc8af9

View file

@ -67,6 +67,7 @@ class ApplicationController < ActionController::Base
def send_file(file, options = {}) def send_file(file, options = {})
options[:type] ||= (FILE_TYPES[File.extname(file)] || 'application/octet-stream') options[:type] ||= (FILE_TYPES[File.extname(file)] || 'application/octet-stream')
options[:stream] = false
super(file, options) super(file, options)
end end