Class: CarrierWave::SanitizedFile

Inherits:
Object
  • Object
show all
Defined in:
lib/locomotive/carrierwave/patches.rb

Instance Method Summary collapse

Instance Method Details

#content_type_with_file_mime_typeObject

FIXME (Did) CarrierWave speaks mime type now



6
7
8
# File 'lib/locomotive/carrierwave/patches.rb', line 6

def content_type_with_file_mime_type
  content_type_without_file_mime_type || File.mime_type?(original_filename)
end