Sha256: 294dcb17c1c27d89c7de740728dc7337dfa919204b321b1348e898f47cbceec9
Contents?: true
Size: 850 Bytes
Versions: 59
Compression:
Stored size: 850 Bytes
Contents
# frozen_string_literal: true Decidim::Verifications.register_workflow(:dummy_authorization_handler) do |workflow| workflow.form = "DummyAuthorizationHandler" workflow.action_authorizer = "DummyAuthorizationHandler::DummyActionAuthorizer" workflow.expires_in = 1.month workflow.renewable = true workflow.time_between_renewals = 5.minutes workflow.options do |options| options.attribute :allowed_postal_codes, type: :string, default: "08001", required: false options.attribute :allowed_scope_id, type: :scope, required: false end end Decidim::Verifications.register_workflow(:another_dummy_authorization_handler) do |workflow| workflow.form = "AnotherDummyAuthorizationHandler" workflow.expires_in = 1.month workflow.options do |options| options.attribute :passport_number, type: :string, required: false end end
Version data entries
59 entries across 59 versions & 2 rubygems