Class: Decidim::EnhancedTextwork::Admin::ParticipatoryTextParagraphForm
- Inherits:
-
ParagraphBaseForm
- Object
- Form
- ParagraphBaseForm
- Decidim::EnhancedTextwork::Admin::ParticipatoryTextParagraphForm
- Defined in:
- app/forms/decidim/enhanced_textwork/admin/participatory_text_paragraph_form.rb
Overview
A form object to be used when admin users want to create a paragraph through the participatory texts.
Instance Method Summary collapse
Methods inherited from ParagraphBaseForm
#author, #category, #component_automatic_hashtags, #component_suggested_hashtags, #extra_hashtags, #geocoded?, #geocoding_enabled?, #has_address?, #meeting_as_author, #meetings, #scope, #scope_id, #suggested_hashtag_checked?, #suggested_hashtags
Instance Method Details
#map_model(model) ⇒ Object
13 14 15 16 |
# File 'app/forms/decidim/enhanced_textwork/admin/participatory_text_paragraph_form.rb', line 13 def map_model(model) self.title = translated_attribute(model.title) self.body = translated_attribute(model.body) end |