Class: Decidim::Admin::SelectiveNewsletterForm
- Inherits:
-
Form
- Object
- Form
- Decidim::Admin::SelectiveNewsletterForm
- Defined in:
- app/forms/decidim/admin/selective_newsletter_form.rb
Overview
A form object to select which users will be sent the selective newsletters
Instance Method Summary collapse
Instance Method Details
#map_model(_newsletter) ⇒ Object
21 22 23 24 25 |
# File 'app/forms/decidim/admin/selective_newsletter_form.rb', line 21 def map_model() self.participatory_space_types = Decidim.participatory_space_manifests.map do |manifest| SelectiveNewsletterParticipatorySpaceTypeForm.from_model(manifest: manifest) end end |