Class: Decidim::Cw::AttachmentUploader

Inherits:
ApplicationUploader show all
Defined in:
decidim-core/app/uploaders/decidim/cw/attachment_uploader.rb

Overview

This class deals with uploading attachments to a participatory space.

Instance Method Summary collapse

Methods inherited from ApplicationUploader

#downloader, #provider, set_variants, #store_dir, #variant, variants

Instance Method Details

#max_image_height_or_widthObject



20
21
22
# File 'decidim-core/app/uploaders/decidim/cw/attachment_uploader.rb', line 20

def max_image_height_or_width
  8000
end

#validable_dimensionsObject



9
10
11
# File 'decidim-core/app/uploaders/decidim/cw/attachment_uploader.rb', line 9

def validable_dimensions
  true
end