From 362364fd6f214e135d059f28106ceaa02d9bd7d4 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 11 Nov 2007 20:55:27 +0000 Subject: [PATCH] Fixed: CSV constant warning git-svn-id: http://redmine.rubyforge.org/svn/trunk@895 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- config/environment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environment.rb b/config/environment.rb index 69d469282..447e47e21 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -78,7 +78,7 @@ ActiveRecord::Errors.default_error_messages = { ActionView::Base.field_error_proc = Proc.new{ |html_tag, instance| "#{html_tag}" } -Mime::Type.register 'text/csv', :csv +Mime::SET << Mime::CSV unless Mime::SET.include?(Mime::CSV) Mime::Type.register 'application/pdf', :pdf GLoc.set_config :default_language => :en -- 2.39.5