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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue