Sha256: 1570927a7b274b6863df708500f099aaea9a4dc7e3160f87d058ddaef3f4920f

Contents?: true

Size: 285 Bytes

Versions: 2

Compression:

Stored size: 285 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ParticipatoryDocuments
    class PdfDocumentUploader < Decidim::ApplicationUploader
      def content_type_allowlist
        %w(application/pdf)
      end

      def extension_allowlist
        %w(pdf)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
decidim-participatory_documents-0.2.2 app/uploaders/decidim/participatory_documents/pdf_document_uploader.rb
decidim-participatory_documents-0.2.1 app/uploaders/decidim/participatory_documents/pdf_document_uploader.rb