Class: Decidim::Plans::Admin::PlanSectionsForm
- Inherits:
-
Form
- Object
- Form
- Decidim::Plans::Admin::PlanSectionsForm
- Includes:
- ApplicationHelper
- Defined in:
- app/forms/decidim/plans/admin/plan_sections_form.rb
Overview
A form object to be used when admin users want to create a plan.
Instance Method Summary collapse
Instance Method Details
#map_model(sections) ⇒ Object
12 13 14 15 16 |
# File 'app/forms/decidim/plans/admin/plan_sections_form.rb', line 12 def map_model(sections) self.sections = sections.map do |section| SectionForm.from_model(section) end end |