Class: Decidim::DecidimAwesome::ImageUploader
- Inherits:
-
ImageUploader
- Object
- ImageUploader
- Decidim::DecidimAwesome::ImageUploader
- Defined in:
- app/uploaders/decidim/decidim_awesome/image_uploader.rb
Overview
This class deals with uploading images to a Blueprints.
Instance Method Summary collapse
- #content_type_whitelist ⇒ Object
-
#extension_white_list ⇒ Object
TODO: remove when diching 0.22 support.
- #extension_whitelist ⇒ Object
- #max_image_height_or_width ⇒ Object
Instance Method Details
#content_type_whitelist ⇒ Object
22 23 24 |
# File 'app/uploaders/decidim/decidim_awesome/image_uploader.rb', line 22 def content_type_whitelist %w(image/jpeg image/png) end |
#extension_white_list ⇒ Object
TODO: remove when diching 0.22 support
14 15 16 |
# File 'app/uploaders/decidim/decidim_awesome/image_uploader.rb', line 14 def extension_white_list %w(jpg jpeg png) end |
#extension_whitelist ⇒ Object
18 19 20 |
# File 'app/uploaders/decidim/decidim_awesome/image_uploader.rb', line 18 def extension_whitelist %w(jpg jpeg png) end |
#max_image_height_or_width ⇒ Object
26 27 28 |
# File 'app/uploaders/decidim/decidim_awesome/image_uploader.rb', line 26 def max_image_height_or_width 8000 end |