Sha256: b2b8cf204e6274d18bb6206099ae7fa1879437fec6ca03fbed257dd5c0763a1f

Contents?: true

Size: 470 Bytes

Versions: 6

Compression:

Stored size: 470 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module DirectVerifications
    class << self
      attr_accessor :config
      def configure
        yield self.config ||= Config.new
      end
    end

    class Config
      attr_reader :manage_workflows
      def manage_workflows=(manage_workflows)
        @manage_workflows.concat(manage_workflows).uniq!
      end

      def initialize
        @manage_workflows = ["direct_verifications"]
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-direct_verifications-0.22.1 lib/decidim/direct_verifications/config.rb
decidim-direct_verifications-0.22 lib/decidim/direct_verifications/config.rb
decidim-direct_verifications-0.21 lib/decidim/direct_verifications/config.rb
decidim-direct_verifications-0.20 lib/decidim/direct_verifications/config.rb
decidim-direct_verifications-0.17.8 lib/decidim/direct_verifications/config.rb
decidim-direct_verifications-0.17.7 lib/decidim/direct_verifications/config.rb