Sha256: c8011fd5e7e9aeddb23f176a7d1bc724d3cea10051e3f9e73ee474fcb7edadb9
Contents?: true
Size: 1.2 KB
Versions: 4
Compression:
Stored size: 1.2 KB
Contents
# frozen_string_literal: true require_relative "direct_verifications/version" require_relative "direct_verifications/user_processor" require_relative "direct_verifications/user_stats" require_relative "direct_verifications/verification" require_relative "direct_verifications/parsers" module Decidim module DirectVerifications include ActiveSupport::Configurable class InputParserError < StandardError; end # Specify in this variable which authorization methods can be managed by the plugin # Be careful to specify only what you really need config_accessor :manage_workflows do ["direct_verifications"] end # The processor for the user uploaded data where to extract emails and other info # be default it uses Decidim::DirectVerifications::Parsers::NameParser # Currently available are: # - :name_parser # - :metadata_parser # A custom parser can be specified as long it respects the module hierachy config_accessor :input_parser do :name_parser end def self.find_parser_class(manifest) "Decidim::DirectVerifications::Parsers::#{manifest.to_s.camelize}".safe_constantize || Decidim::DirectVerifications::Parsers::NameParser end end end
Version data entries
4 entries across 4 versions & 1 rubygems