Fix for exports and other file downloads
This commit is contained in:
parent
06959ab278
commit
61eacae836
2 changed files with 2 additions and 0 deletions
|
@ -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