Sha256: 02d4bf52e4e390bff5c707a2d92ee0258faeeeae5ecf7ca52a7e70b57be92ea1

Contents?: true

Size: 596 Bytes

Versions: 19

Compression:

Stored size: 596 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?
        alias organization current_organization
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
decidim-verifications-0.26.10 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.26.9 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.26.8 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.26.7 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.26.5 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.26.4 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.26.3 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.26.2 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.26.1 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.26.0 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.26.0.rc2 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.26.0.rc1 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.25.2 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.25.1 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.25.0 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.25.0.rc4 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.25.0.rc3 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.25.0.rc2 app/forms/decidim/verifications/id_documents/upload_form.rb
decidim-verifications-0.25.0.rc1 app/forms/decidim/verifications/id_documents/upload_form.rb