Fix for exports and other file downloads

This commit is contained in:
Alexey Verkhovsky 2005-08-15 00:07:43 +00:00
parent 06959ab278
commit 61eacae836
2 changed files with 2 additions and 0 deletions

View file

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

View file

@ -1,6 +1,7 @@
require 'fileutils'
require 'redcloth_for_tex'
require 'parsedate'
require 'zip/zip'
class WikiController < ApplicationController