Module: Models::DragonflyAccessor
- Extended by:
- ActiveSupport::Concern
- Included in:
- ApplicationRecord
- Defined in:
- app/concerns/models/dragonfly_accessor.rb
Overview
This module allows the caching of mime type for dragonfly
It is necessary for s3 style storage where the mime type by default is just
returned as application/octet-stream instead of the proper type
See https://www.viget.com/articles/saving-mime-types-with-dragonfly/
It also intercepts the default file name generation to ensure we do datastore
compatible file names
Defined Under Namespace
Modules: ClassMethods