Class: Decidim::Admin::ContentBlockForm

Inherits:
Form
  • Object
show all
Includes:
TranslatableAttributes
Defined in:
app/forms/decidim/admin/content_block_form.rb

Overview

A form object used to configure a content block from the admin panel.

Direct Known Subclasses

NewsletterForm

Instance Method Summary collapse

Instance Method Details

#map_model(model) ⇒ Object



15
16
17
# File 'app/forms/decidim/admin/content_block_form.rb', line 15

def map_model(model)
  self.images = model.images_container
end

#settings?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'app/forms/decidim/admin/content_block_form.rb', line 19

def settings?
  settings.manifest.settings.any?
end