Sha256: c1907c48f9223685329266285e62a7afc68afedd3cff2aa294626d9a63d327af
Contents?: true
Size: 779 Bytes
Versions: 6
Compression:
Stored size: 779 Bytes
Contents
# frozen_string_literal: true module Decidim module Elections module Admin # This class holds a form to perform an action on the BB. class ActionForm < Decidim::Form validates :pending_action, absence: true def messages @messages ||= {} end def current_step @current_step ||= election.bb_status end def election @election ||= context[:election] end def pending_action return @pending_action if defined?(@pending_action) @pending_action = election.actions.pending.first end def bulletin_board @bulletin_board ||= context[:bulletin_board] || Decidim::Elections.bulletin_board end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems