Sha256: de2b22fd7d67e0a1e3d78553b97718ba81b0ef8f58ae43fd8179a8096efad1f3
Contents?: true
Size: 1.56 KB
Versions: 7
Compression:
Stored size: 1.56 KB
Contents
# frozen_string_literal: true require "decidim/elections/admin" require "decidim/elections/api" require "decidim/elections/trustee_zone" require "decidim/elections/engine" require "decidim/elections/admin_engine" require "decidim/elections/trustee_zone_engine" require "decidim/elections/component" require "decidim/bulletin_board" require "decidim/votings" # Note: these gems will be moved to the application in the next release require "voting_schemes/electionguard" require "voting_schemes/dummy" module Decidim # This namespace holds the logic of the `Elections` component. This component # allows users to create elections in a participatory space. module Elections autoload :AnswerSerializer, "decidim/elections/answer_serializer" include ActiveSupport::Configurable def self.bulletin_board @bulletin_board ||= Decidim::BulletinBoard::Client.new end # Public Setting that defines how many hours should the setup be run before the election starts config_accessor :setup_minimum_hours_before_start do 3 end # Public Setting that defines how many hours the ballot box can be opened before the election starts config_accessor :start_vote_maximum_hours_before_start do 6 end # Public Setting that defines how many minutes will pass until the token of the voter expires config_accessor :voter_token_expiration_minutes do 120 end # Public Setting that defines which kind of documents a participant can have config_accessor :document_types do %w(identification_number passport) end end end
Version data entries
7 entries across 7 versions & 1 rubygems