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

Version Path
decidim-generators-0.29.1 lib/decidim/generators/app_templates/verifications_initializer.rb
decidim-generators-0.28.4 lib/decidim/generators/app_templates/verifications_initializer.rb
decidim-generators-0.27.9 lib/decidim/generators/app_templates/verifications_initializer.rb
decidim-generators-0.29.0 lib/decidim/generators/app_templates/verifications_initializer.rb
decidim-generators-0.28.3 lib/decidim/generators/app_templates/verifications_initializer.rb
decidim-generators-0.27.8 lib/decidim/generators/app_templates/verifications_initializer.rb
decidim-generators-0.29.0.rc4 lib/decidim/generators/app_templates/verifications_initializer.rb
decidim-generators-0.29.0.rc3 lib/decidim/generators/app_templates/verifications_initializer.rb
decidim-generators-0.29.0.rc2 lib/decidim/generators/app_templates/verifications_initializer.rb
decidim-generators-0.29.0.rc1 lib/decidim/generators/app_templates/verifications_initializer.rb
decidim-generators-0.28.2 lib/decidim/generators/app_templates/verifications_initializer.rb
decidim-generators-0.27.7 lib/decidim/generators/app_templates/verifications_initializer.rb
decidim-generators-0.28.1 lib/decidim/generators/app_templates/verifications_initializer.rb
decidim-generators-0.27.6 lib/decidim/generators/app_templates/verifications_initializer.rb
decidim-generators-0.26.10 lib/decidim/generators/app_templates/verifications_initializer.rb
decidim-file_authorization_handler-0.27.1.7 spec/decidim_dummy_app/config/initializers/decidim_verifications.rb
decidim-generators-0.26.9 lib/decidim/generators/app_templates/verifications_initializer.rb
decidim-generators-0.28.0 lib/decidim/generators/app_templates/verifications_initializer.rb
decidim-generators-0.27.5 lib/decidim/generators/app_templates/verifications_initializer.rb
decidim-generators-0.28.0.rc5 lib/decidim/generators/app_templates/verifications_initializer.rb