Class: Decidim::Votings::QuestionResultForm

Inherits:
Form
  • Object
show all
Includes:
TranslatableAttributes
Defined in:
decidim-elections/app/forms/decidim/votings/question_result_form.rb

Instance Method Summary collapse

Methods included from TranslatableAttributes

#default_locale?

Instance Method Details

#map_model(model) ⇒ Object


16
17
18
19
20
21
# File 'decidim-elections/app/forms/decidim/votings/question_result_form.rb', line 16

def map_model(model)
  question = model[:question]
  self.id = question.id
  self.title = question.title
  self.nota_option = question.nota_option?
end