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
25 26 27 28 29 30 31 |
# File 'app/forms/decidim/admin/selective_newsletter_form.rb', line 25 def map_model() self.participatory_space_types = Decidim.participatory_space_manifests.map do |manifest| SelectiveNewsletterParticipatorySpaceTypeForm.from_model(manifest:) end self.verification_types = .organization. end |