Class: Decidim::Meetings::Admin::QuestionnaireForm
- Inherits:
-
Form
- Object
- Form
- Decidim::Meetings::Admin::QuestionnaireForm
- Defined in:
- app/forms/decidim/meetings/admin/questionnaire_form.rb
Overview
This class holds a Form to update questionnaires from Decidim’s admin panel.
Instance Method Summary collapse
Instance Method Details
#map_model(model) ⇒ Object
11 12 13 14 15 |
# File 'app/forms/decidim/meetings/admin/questionnaire_form.rb', line 11 def map_model(model) self.questions = model.questions.map do |question| Decidim::Meetings::Admin::QuestionForm.from_model(question) end end |