Cleared another reload warning

This commit is contained in:
Alexey Verkhovsky 2005-04-07 05:14:02 +00:00
parent 64061a95f9
commit 41b3468a57

View file

@ -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')