Class: Decidim::Cw::DecidimAwesome::ImageUploader
- Inherits:
-
ImageUploader
- Object
- ImageUploader
- Decidim::Cw::DecidimAwesome::ImageUploader
- Defined in:
- app/uploaders/decidim/cw/decidim_awesome/image_uploader.rb
Overview
Transitional class to allow carrierwave to active storage migrations
Instance Method Summary collapse
Instance Method Details
#content_type_whitelist ⇒ Object
17 18 19 |
# File 'app/uploaders/decidim/cw/decidim_awesome/image_uploader.rb', line 17 def content_type_whitelist %w(image/jpeg image/png) end |
#extension_whitelist ⇒ Object
13 14 15 |
# File 'app/uploaders/decidim/cw/decidim_awesome/image_uploader.rb', line 13 def extension_whitelist %w(jpg jpeg png) end |
#max_image_height_or_width ⇒ Object
21 22 23 |
# File 'app/uploaders/decidim/cw/decidim_awesome/image_uploader.rb', line 21 def max_image_height_or_width 8000 end |