Class: Decidim::Elections::Voter::VerifyVoteForm

Inherits:
Form
  • Object
show all
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

Instance Method Details

#bulletin_boardObject



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

#electionObject

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