Class: Decidim::Amendable::EditForm

Inherits:
Form
  • Object
show all
Defined in:
app/forms/decidim/amendable/edit_form.rb

Overview

A form object used to edit emendations

Instance Method Summary collapse

Methods inherited from Form

#amendable, #amender, #amendment, #emendation

Methods included from TranslatableAttributes

#default_locale?

Instance Method Details

#map_model(model) ⇒ Object



17
18
19
# File 'app/forms/decidim/amendable/edit_form.rb', line 17

def map_model(model)
  self.emendation_params = model.emendation.attributes.slice(*amendable_fields_as_string)
end