Sha256: 0b2c06d7d50647221b3add1cce1ebc92cfd19a792427636118312795e415c5e5

Contents?: true

Size: 691 Bytes

Versions: 9

Compression:

Stored size: 691 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/dummy"

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
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-verifications-0.11.2 lib/decidim/verifications.rb
decidim-verifications-0.11.1 lib/decidim/verifications.rb
decidim-verifications-0.11.0.pre1 lib/decidim/verifications.rb
decidim-verifications-0.10.1 lib/decidim/verifications.rb
decidim-verifications-0.10.0 lib/decidim/verifications.rb
decidim-verifications-0.9.3 lib/decidim/verifications.rb
decidim-verifications-0.9.2 lib/decidim/verifications.rb
decidim-verifications-0.9.1 lib/decidim/verifications.rb
decidim-verifications-0.9.0 lib/decidim/verifications.rb