summaryrefslogtreecommitdiffstats
path: root/config/environment.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-11-11 20:55:27 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-11-11 20:55:27 +0000
commit362364fd6f214e135d059f28106ceaa02d9bd7d4 (patch)
tree760b86d10a0df66fa60134a6022fd57e9beaa77c /config/environment.rb
parentb0bb1baeaac665eea6188f05af627697a3e90eaa (diff)
downloadredmine-362364fd6f214e135d059f28106ceaa02d9bd7d4.tar.gz
redmine-362364fd6f214e135d059f28106ceaa02d9bd7d4.zip
Fixed: CSV constant warning
git-svn-id: http://redmine.rubyforge.org/svn/trunk@895 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/environment.rb')
-rw-r--r--config/environment.rb2
1 files changed, 1 insertions, 1 deletions
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