Class: Decidim::Admin::NewsletterForm
- Inherits:
-
ContentBlockForm
- Object
- Form
- ContentBlockForm
- Decidim::Admin::NewsletterForm
- Includes:
- TranslatableAttributes
- Defined in:
- app/forms/decidim/admin/newsletter_form.rb
Overview
The form that validates the data to construct a valid Newsletter.
Instance Method Summary collapse
Methods inherited from ContentBlockForm
Instance Method Details
#map_model(content_block) ⇒ Object
14 15 16 17 |
# File 'app/forms/decidim/admin/newsletter_form.rb', line 14 def map_model(content_block) super(content_block) self.subject = (content_block).try(:subject) end |