Class: Decidim::DecidimAwesome::ImageUploader

Inherits:
ImageUploader
  • Object
show all
Defined in:
app/uploaders/decidim/decidim_awesome/image_uploader.rb

Overview

This class deals with uploading images to a Blueprints.

Instance Method Summary collapse

Instance Method Details

#content_type_whitelistObject



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_listObject

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_whitelistObject



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_widthObject



26
27
28
# File 'app/uploaders/decidim/decidim_awesome/image_uploader.rb', line 26

def max_image_height_or_width
  8000
end