Sha256: 9d86814cdb5ebe51cd9b8a402e8bd77faf91b2ff60b6a322e6622802782da732

Contents?: true

Size: 690 Bytes

Versions: 7

Compression:

Stored size: 690 Bytes

Contents

# frozen_string_literal: true

Decidim::Verifications.register_workflow(:dummy_authorization_handler) do |workflow|
  workflow.form = "DummyAuthorizationHandler"
  workflow.action_authorizer = "DummyAuthorizationHandler::ActionAuthorizer"
  workflow.expires_in = 1.hour

  workflow.options do |options|
    options.attribute :postal_code, type: :string, default: "08001", required: false
  end
end

Decidim::Verifications.register_workflow(:another_dummy_authorization_handler) do |workflow|
  workflow.form = "AnotherDummyAuthorizationHandler"
  workflow.expires_in = 1.hour

  workflow.options do |options|
    options.attribute :passport_number, type: :string, required: false
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-generators-0.13.1 lib/decidim/generators/app_templates/verifications_initializer.rb
decidim-generators-0.12.2 lib/decidim/generators/app_templates/verifications_initializer.rb
decidim-generators-0.13.0 lib/decidim/generators/app_templates/verifications_initializer.rb
decidim-generators-0.12.1 lib/decidim/generators/app_templates/verifications_initializer.rb
decidim-generators-0.13.0.pre1 lib/decidim/generators/app_templates/verifications_initializer.rb
decidim-generators-0.12.0 lib/decidim/generators/app_templates/verifications_initializer.rb
decidim-generators-0.12.0.pre lib/decidim/generators/app_templates/verifications_initializer.rb