Class: Decidim::Elections::TrusteeZone::ElectionsController
- Inherits:
-
ApplicationController
- Object
- DecidimController
- ApplicationController
- ApplicationController
- Decidim::Elections::TrusteeZone::ElectionsController
- Defined in:
- decidim-elections/app/controllers/decidim/elections/trustee_zone/elections_controller.rb
Overview
Handles the KeyCeremony for trustee users
Instance Method Summary collapse
Methods included from UserProfile
#available_verification_workflows
Methods included from UserGroups
Methods included from UserBlockedChecker
#check_user_block_status, #check_user_not_blocked
Methods included from NeedsSnippets
Methods included from Headers::HttpCachingDisabler
Methods included from HasStoredPath
#skip_store_location?, #store_current_location
Methods included from RegistersPermissions
Methods included from NeedsOrganization
enhance_controller, extended, included
Instance Method Details
#show ⇒ Object
10 11 12 |
# File 'decidim-elections/app/controllers/decidim/elections/trustee_zone/elections_controller.rb', line 10 def show :view, :election, trustee: end |
#update ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'decidim-elections/app/controllers/decidim/elections/trustee_zone/elections_controller.rb', line 14 def update (:update, :election, trustee:) UpdateElectionBulletinBoardStatus.call(election, params[:status]) do on(:ok) do render :update end on(:invalid) do flash[:alert] = I18n.t("elections.update.error", scope: "decidim.elections.trustee_zone") end end end |