Class: Decidim::Amendable::PublishForm
- Defined in:
- app/forms/decidim/amendable/publish_form.rb
Overview
A form object used to publish emendations
Instance Method Summary collapse
Methods inherited from Form
#amendable, #amender, #amendment, #emendation
Methods included from TranslatableAttributes
Instance Method Details
#map_model(model) ⇒ Object
15 16 17 18 |
# File 'app/forms/decidim/amendable/publish_form.rb', line 15 def map_model(model) self.amendable_params = model.amendable.attributes.slice(*amendable_fields_as_string) self.emendation_params = model.emendation.attributes.slice(*amendable_fields_as_string) end |