Fix for exports and other file downloads
This commit is contained in:
parent
06959ab278
commit
61eacae836
|
@ -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
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
require 'fileutils'
|
||||
require 'redcloth_for_tex'
|
||||
require 'parsedate'
|
||||
require 'zip/zip'
|
||||
|
||||
class WikiController < ApplicationController
|
||||
|
||||
|
|
Loading…
Reference in a new issue