Sha256: 19b7ff4364bf9739d1a923ceefac8b627a46b49e2b40d8cffed4bc0398d55afd
Contents?: true
Size: 365 Bytes
Versions: 9
Compression:
Stored size: 365 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_allowlist %w(image/jpeg image/png image/webp) end def extension_allowlist %w(jpeg jpg png webp) end end end
Version data entries
9 entries across 9 versions & 1 rubygems