Sha256: 247fb4949a5e15e88ac3c3f3cc2cfb45b3b3e0a9581107a5e92577207291eda2

Contents?: true

Size: 364 Bytes

Versions: 6

Compression:

Stored size: 364 Bytes

Contents

# frozen_string_literal: true
module Decidim
  # This class deals with uploading an organization's favicon.
  class OrganizationFaviconUploader < ImageUploader
    SIZES = {
      big: 152,
      medium: 64,
      small: 32
    }.freeze

    SIZES.each do |name, size|
      version name do
        process resize_and_pad: [size, size]
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-core-0.1.0 app/uploaders/decidim/organization_favicon_uploader.rb
decidim-core-0.0.8.1 app/uploaders/decidim/organization_favicon_uploader.rb
decidim-core-0.0.7 app/uploaders/decidim/organization_favicon_uploader.rb
decidim-core-0.0.6 app/uploaders/decidim/organization_favicon_uploader.rb
decidim-core-0.0.5 app/uploaders/decidim/organization_favicon_uploader.rb
decidim-core-0.0.3 app/uploaders/decidim/organization_favicon_uploader.rb