Class: Decidim::Admin::ComponentForm
- Inherits:
-
Form
- Object
- Form
- Decidim::Admin::ComponentForm
- Includes:
- TranslatableAttributes
- Defined in:
- app/forms/decidim/admin/component_form.rb
Overview
A form object used to attach a component to a participatory process from the admin panel.
Instance Method Summary collapse
Instance Method Details
#default_step_settings? ⇒ Boolean
34 35 36 |
# File 'app/forms/decidim/admin/component_form.rb', line 34 def default_step_settings? default_step_settings.manifest.attributes.any? end |
#map_model(model) ⇒ Object
38 39 40 |
# File 'app/forms/decidim/admin/component_form.rb', line 38 def map_model(model) self.share_tokens = model.share_tokens end |
#settings? ⇒ Boolean
30 31 32 |
# File 'app/forms/decidim/admin/component_form.rb', line 30 def settings? settings.manifest.attributes.any? end |