diff --git a/app/controllers/application.rb b/app/controllers/application.rb index f56a185d..c49b276d 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -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')