diff options
-rw-r--r-- | config/environment.rb | 2 |
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 |