Class: Decidim::Cw::AttachmentUploader

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

Overview

This class deals with uploading attachments to a participatory space.

Instance Attribute Summary

Attributes inherited from ApplicationUploader

#content_type_allowlist, #content_type_denylist, #model, #mounted_as

Instance Method Summary collapse

Methods inherited from ApplicationUploader

#attached?, #initialize, #path, #remote_url=, set_variants, #store_dir, #url, #variant, #variant_path, #variant_url, variants

Constructor Details

This class inherits a constructor from Decidim::ApplicationUploader

Instance Method Details

#max_image_height_or_widthObject



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

def max_image_height_or_width
  8000
end

#validable_dimensionsObject



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

def validable_dimensions
  true
end