Fixed exports and other file downloads
This commit is contained in:
parent
0f35016069
commit
7493bc8af9
|
@ -67,6 +67,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
|
||||
|
||||
|
|
Loading…
Reference in a new issue