Sha256: e6fd9af143bf1fd1d0406732cbde56844efae667695024929b6c51a839eea18b

Contents?: true

Size: 628 Bytes

Versions: 7

Compression:

Stored size: 628 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module AccessRequests
    module Verification
      # A form object to be used when public users want to get verified by
      # access requests.
      class RequestForm < AuthorizationHandler
        attribute :handler_handle, String

        validates :handler_handle,
                  presence: true,
                  inclusion: {
                    in: proc { |form|
                      form.current_organization.available_authorizations
                    }
                  }

        def handler_name
          handler_handle
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-access_requests-0.19.1 app/forms/decidim/access_requests/verification/request_form.rb
decidim-access_requests-0.19.0 app/forms/decidim/access_requests/verification/request_form.rb
decidim-access_requests-0.18.0 app/forms/decidim/access_requests/verification/request_form.rb
decidim-access_requests-0.17.0 app/forms/decidim/access_requests/verification/request_form.rb
decidim-access_requests-0.16.1 app/forms/decidim/access_requests/verification/request_form.rb
decidim-access_requests-0.16.0 app/forms/decidim/access_requests/verification/request_form.rb
decidim-access_requests-0.15.0 app/forms/decidim/access_requests/verification/request_form.rb