Sha256: 1d07b313ee07cb076bd97c98edca8cb2e74a283fb86a7b383dac892ad4a9ead1

Contents?: true

Size: 548 Bytes

Versions: 14

Compression:

Stored size: 548 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Verifications
    module IdDocuments
      # A form object to be used when public users want to get verified by
      # uploading their identity documents.
      class UploadForm < InformationForm
        mimic :id_document_upload

        attribute :verification_attachment, String

        validates :verification_attachment,
                  passthru: { to: Decidim::Authorization },
                  presence: true,
                  if: :uses_online_method?
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
decidim-verifications-0.24.3 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.23.6 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.24.2 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.23.5 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.24.1 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.24.0 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.24.0.rc2 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.23.4 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.24.0.rc1 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.23.3 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.23.2 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.23.1 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.23.1.rc1 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.23.0 app/forms/decidim/verifications/id_documents/upload_form.rb