Class: Decidim::Admin::NewsletterForm

Inherits:
ContentBlockForm show all
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

#settings?

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 = newsletter_for(content_block).try(:subject)
end