Cleared another reload warning
This commit is contained in:
parent
64061a95f9
commit
41b3468a57
|
@ -59,7 +59,7 @@ class ApplicationController < ActionController::Base
|
|||
'.png' => 'image/png',
|
||||
'.txt' => 'text/plain',
|
||||
'.zip' => 'application/zip'
|
||||
}
|
||||
} unless defined? FILE_TYPES
|
||||
|
||||
def send_file(file, options = {})
|
||||
options[:type] ||= (FILE_TYPES[File.extname(file)] || 'application/octet-stream')
|
||||
|
|
Loading…
Reference in a new issue