Sha256: 45f75af5b2769a3e89b658ac417588df9a538d18a58228aa930940dd386da9ef
Contents?: true
Size: 471 Bytes
Versions: 16
Compression:
Stored size: 471 Bytes
Contents
# frozen_string_literal: true module Decidim module Plans module Admin # A form object to be used when admin users want to create a plan. class PlanSectionsForm < Decidim::Form include Decidim::ApplicationHelper attribute :sections, Array[SectionForm] def map_model(sections) self.sections = sections.map do |section| SectionForm.from_model(section) end end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems