Class: Decidim::Consultations::MultiVoteForm

Inherits:
Form
  • Object
show all
Defined in:
decidim-consultations/app/forms/decidim/consultations/multi_vote_form.rb

Overview

This form validates a MultiVote Question

Instance Method Summary collapse

Instance Method Details

#vote_formsObject


14
15
16
17
18
# File 'decidim-consultations/app/forms/decidim/consultations/multi_vote_form.rb', line 14

def vote_forms
  @vote_forms ||= responses.map do |response_id|
    VoteForm.from_params(decidim_consultations_response_id: response_id)
  end
end