Sha256: ff5c36a89b3b6a7d431ec301bf59f1e03e406ccf4ba0a5f80ed224681f854d21

Contents?: true

Size: 353 Bytes

Versions: 38

Compression:

Stored size: 353 Bytes

Contents

# frozen_string_literal: true

module Decidim::Cw
  # This class deals with uploading record specific images that have more
  # limited content types than the defaults.
  class RecordImageUploader < ImageUploader
    def content_type_allowlist
      %w(image/jpeg image/png)
    end

    def extension_allowlist
      %w(jpeg jpg png)
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
decidim-core-0.28.4 app/uploaders/decidim/cw/record_image_uploader.rb
decidim-core-0.27.9 app/uploaders/decidim/cw/record_image_uploader.rb
decidim-core-0.28.3 app/uploaders/decidim/cw/record_image_uploader.rb
decidim-core-0.27.8 app/uploaders/decidim/cw/record_image_uploader.rb
decidim-core-0.28.2 app/uploaders/decidim/cw/record_image_uploader.rb
decidim-core-0.27.7 app/uploaders/decidim/cw/record_image_uploader.rb
decidim-core-0.28.1 app/uploaders/decidim/cw/record_image_uploader.rb
decidim-core-0.27.6 app/uploaders/decidim/cw/record_image_uploader.rb
decidim-core-0.26.10 app/uploaders/decidim/cw/record_image_uploader.rb
decidim-core-0.26.9 app/uploaders/decidim/cw/record_image_uploader.rb
decidim-core-0.28.0 app/uploaders/decidim/cw/record_image_uploader.rb
decidim-core-0.27.5 app/uploaders/decidim/cw/record_image_uploader.rb
decidim-core-0.28.0.rc5 app/uploaders/decidim/cw/record_image_uploader.rb
decidim-core-0.28.0.rc4 app/uploaders/decidim/cw/record_image_uploader.rb
decidim-core-0.26.8 app/uploaders/decidim/cw/record_image_uploader.rb
decidim-core-0.27.4 app/uploaders/decidim/cw/record_image_uploader.rb
decidim-core-0.27.3 app/uploaders/decidim/cw/record_image_uploader.rb
decidim-core-0.26.7 app/uploaders/decidim/cw/record_image_uploader.rb
decidim-core-0.26.5 app/uploaders/decidim/cw/record_image_uploader.rb
decidim-core-0.27.2 app/uploaders/decidim/cw/record_image_uploader.rb