Module: Locomotive::CarrierWave::Uploader::Asset::ClassMethods

Defined in:
lib/locomotive/carrierwave/asset.rb

Instance Method Summary collapse

Instance Method Details

#content_typesObject



21
22
23
24
25
26
27
28
29
30
# File 'lib/locomotive/carrierwave/asset.rb', line 21

def content_types
  {
    :image      => ['image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png', 'image/jpg', 'image/x-icon'],
    :media      => [/^video/, 'application/x-shockwave-flash', 'application/x-flash-video', 'application/x-swf', /^audio/, 'application/ogg', 'application/x-mp3'],
    :pdf        => ['application/pdf', 'application/x-pdf'],
    :stylesheet => ['text/css'],
    :javascript => ['text/javascript', 'text/js', 'application/x-javascript', 'application/javascript', 'text/x-component'],
    :font       => ['application/x-font-ttf', 'application/vnd.ms-fontobject', 'image/svg+xml', 'application/x-woff']
  }
end