Sha256: fe8642a62b32509d1f967b9a949cb4d5bb1dba6eff818a90fc210648f499abf4

Contents?: true

Size: 349 Bytes

Versions: 8

Compression:

Stored size: 349 Bytes

Contents

# frozen_string_literal: true

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
decidim-core-0.23.6 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.23.5 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.23.4 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.23.3 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.23.2 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.23.1 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.23.1.rc1 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.23.0 app/uploaders/decidim/record_image_uploader.rb