]> source.dussan.org Git - redmine.git/commitdiff
Fixed: CSV constant warning
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 11 Nov 2007 20:55:27 +0000 (20:55 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 11 Nov 2007 20:55:27 +0000 (20:55 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@895 e93f8b46-1217-0410-a6f0-8f06a7374b81

config/environment.rb

index 69d4692829699abe5cd2f4fc8898c7554986866a..447e47e213338d684434177d9f9f5e1b17b0e6a4 100644 (file)
@@ -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