Sha256: 8c7b0c0ebc0a224c5065c0fa46850512baa02d28b59011068071ca824da36dcd

Contents?: true

Size: 1.3 KB

Versions: 31

Compression:

Stored size: 1.3 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

    config_accessor :voter_token_expiration_minutes do
      120
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
decidim-elections-0.27.9 lib/decidim/elections.rb
decidim-elections-0.27.8 lib/decidim/elections.rb
decidim-elections-0.27.7 lib/decidim/elections.rb
decidim-elections-0.27.6 lib/decidim/elections.rb
decidim-elections-0.26.10 lib/decidim/elections.rb
decidim-elections-0.26.9 lib/decidim/elections.rb
decidim-elections-0.27.5 lib/decidim/elections.rb
decidim-elections-0.26.8 lib/decidim/elections.rb
decidim-elections-0.27.4 lib/decidim/elections.rb
decidim-elections-0.27.3 lib/decidim/elections.rb
decidim-elections-0.26.7 lib/decidim/elections.rb
decidim-elections-0.26.5 lib/decidim/elections.rb
decidim-elections-0.27.2 lib/decidim/elections.rb
decidim-elections-0.27.1 lib/decidim/elections.rb
decidim-elections-0.26.4 lib/decidim/elections.rb
decidim-elections-0.27.0 lib/decidim/elections.rb
decidim-elections-0.26.3 lib/decidim/elections.rb
decidim-elections-0.27.0.rc2 lib/decidim/elections.rb
decidim-elections-0.27.0.rc1 lib/decidim/elections.rb
decidim-elections-0.26.2 lib/decidim/elections.rb