annotate config/initializers/20-mime_types.rb @ 777:facded821cee feature_14

Fixes Bug #321 - testing for true as a string in the controller; test the status of the fieldsets before toggling them in the js script.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 17 Nov 2011 22:12:45 +0000
parents 513646585e45
children 433d4f72a19b
rev   line source
Chris@0 1 # Add new mime types for use in respond_to blocks:
Chris@0 2
Chris@0 3 Mime::SET << Mime::CSV unless Mime::SET.include?(Mime::CSV)
Chris@0 4 Mime::Type.register 'application/pdf', :pdf
Chris@0 5 Mime::Type.register 'image/png', :png