Class: Decidim::OrganizationFaviconUploader

Inherits:
ImageUploader show all
Defined in:
decidim-core/app/uploaders/decidim/organization_favicon_uploader.rb

Overview

This class deals with uploading an organization’s favicon.

Constant Summary collapse

SIZES =
{
  huge: 512,
  big: 192,
  medium: 180,
  small: 32
}.freeze

Instance Attribute Summary

Attributes inherited from ApplicationUploader

#content_type_allowlist, #content_type_denylist, #model, #mounted_as, #validable_dimensions

Instance Method Summary collapse

Methods inherited from ImageUploader

#content_type_allowlist, #dimensions_info, #max_image_height_or_width, #validable_dimensions

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

#extension_allowlistObject



28
29
30
# File 'decidim-core/app/uploaders/decidim/organization_favicon_uploader.rb', line 28

def extension_allowlist
  %w(png jpg jpeg ico)
end