From 41b3468a57f3454f3cd204b7a30123e5ec1315b6 Mon Sep 17 00:00:00 2001 From: Alexey Verkhovsky Date: Thu, 7 Apr 2005 05:14:02 +0000 Subject: [PATCH] Cleared another reload warning --- app/controllers/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')