Class: Decidim::Amendable::ReviewForm

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

Overview

A form object used to review 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



16
17
18
# File 'app/forms/decidim/amendable/review_form.rb', line 16

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