Class: CarrierWave::SanitizedFile
- Inherits:
-
Object
- Object
- CarrierWave::SanitizedFile
- Defined in:
- mod/carrierwave/lib/carrier_wave/file_card_uploader.rb
Instance Method Summary collapse
Instance Method Details
#content_type ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'mod/carrierwave/lib/carrier_wave/file_card_uploader.rb', line 9 def content_type # the original content_type method doesn't seem to be very reliable # It uses mime_magic_content_type - which returns invalid/invalid for css files # that start with a comment - as the second option. (we switch the order and # use it as the third option) @content_type ||= existing_content_type || mini_mime_content_type || mime_magic_content_type end |