Sha256: 2cf5b8158a8e559e175243eacc9f757ed3298fce7e6d474875126cd108d5f026

Contents?: true

Size: 890 Bytes

Versions: 14

Compression:

Stored size: 890 Bytes

Contents

# frozen_string_literal: true

require "decidim/verifications/engine"
require "decidim/verifications/default_action_authorizer"
require "decidim/verifications/workflows"

require "decidim/verifications/id_documents"
require "decidim/verifications/postal_letter"
require "decidim/verifications/sms"
require "decidim/verifications/csv_census"

module Decidim
  def self.authorization_workflows
    Decidim::Verifications.workflows
  end

  def self.authorization_engines
    Decidim::Verifications.workflows.select(&:engine)
  end

  def self.authorization_admin_engines
    Decidim::Verifications.workflows.select(&:admin_engine)
  end

  def self.authorization_handlers
    Decidim::Verifications.workflows.select(&:form)
  end

  module Verifications
    include ActiveSupport::Configurable
    config_accessor :document_types do
      %w(identification_number passport)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
decidim-verifications-0.29.1 lib/decidim/verifications.rb
decidim-verifications-0.28.4 lib/decidim/verifications.rb
decidim-verifications-0.27.9 lib/decidim/verifications.rb
decidim-verifications-0.29.0 lib/decidim/verifications.rb
decidim-verifications-0.28.3 lib/decidim/verifications.rb
decidim-verifications-0.27.8 lib/decidim/verifications.rb
decidim-verifications-0.29.0.rc4 lib/decidim/verifications.rb
decidim-verifications-0.29.0.rc3 lib/decidim/verifications.rb
decidim-verifications-0.29.0.rc2 lib/decidim/verifications.rb
decidim-verifications-0.29.0.rc1 lib/decidim/verifications.rb
decidim-verifications-0.28.2 lib/decidim/verifications.rb
decidim-verifications-0.27.7 lib/decidim/verifications.rb
decidim-verifications-0.28.1 lib/decidim/verifications.rb
decidim-verifications-0.27.6 lib/decidim/verifications.rb