Sha256: 1ddefdbd387432aefb173e22ccc91b27938ea67d17853cf2e6266fef932e82cd
Contents?: true
Size: 1.35 KB
Versions: 31
Compression:
Stored size: 1.35 KB
Contents
# frozen_string_literal: true module Decidim module Votings # This is the engine that runs on the public interface for polling officers of `decidim-elections`. # It mostly handles rendering the polling officers frontend zone. class PollingOfficerZoneEngine < ::Rails::Engine isolate_namespace Decidim::Votings::PollingOfficerZone paths["db/migrate"] = nil paths["lib/tasks"] = nil routes do resources :polling_officers, path: "/", only: [:index] do resources :elections, only: [:index] do resource :closure do member do post :certify post :sign end end resources :in_person_votes, only: [:new, :create, :show, :update] end end end def load_seed nil end initializer "decidim_elections.polling_officer_zone.menu" do Decidim.menu :user_menu do |menu| menu.add_item :decidim_votings_polling_officer_zone, I18n.t("menu.polling_officer_zone", scope: "decidim.votings.polling_officer_zone"), decidim.decidim_votings_polling_officer_zone_path, active: :inclusive, if: Decidim::Votings::PollingOfficer.polling_officer?(current_user) end end end end end
Version data entries
31 entries across 31 versions & 1 rubygems