Class: Decidim::Votings::QuestionResultForm
- Inherits:
-
Form
- Object
- Form
- Decidim::Votings::QuestionResultForm
- Includes:
- TranslatableAttributes
- Defined in:
- app/forms/decidim/votings/question_result_form.rb
Instance Method Summary collapse
Instance Method Details
#map_model(model) ⇒ Object
16 17 18 19 20 21 |
# File '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 |