Class: Decidim::Elections::Voter::VerifyVoteForm
- Inherits:
-
Form
- Object
- Form
- Decidim::Elections::Voter::VerifyVoteForm
- Defined in:
- app/forms/decidim/elections/voter/verify_vote_form.rb
Overview
This class holds the data to verify a vote.
Instance Method Summary collapse
- #bulletin_board ⇒ Object
-
#election ⇒ Object
Public: returns the associated election for the vote.
Instance Method Details
#bulletin_board ⇒ Object
19 20 21 |
# File 'app/forms/decidim/elections/voter/verify_vote_form.rb', line 19 def bulletin_board @bulletin_board ||= context[:bulletin_board] || Decidim::Elections.bulletin_board end |
#election ⇒ Object
Public: returns the associated election for the vote.
15 16 17 |
# File 'app/forms/decidim/elections/voter/verify_vote_form.rb', line 15 def election @election ||= context.election end |