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