From: Jean-Philippe Lang Date: Sun, 11 Nov 2007 20:55:27 +0000 (+0000) Subject: Fixed: CSV constant warning X-Git-Tag: 0.6.1~69 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=362364fd6f214e135d059f28106ceaa02d9bd7d4;p=redmine.git Fixed: CSV constant warning git-svn-id: http://redmine.rubyforge.org/svn/trunk@895 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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