Class: Decidim::Amendable::PromoteForm

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

Overview

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


14
15
16
# File 'decidim-core/app/forms/decidim/amendable/promote_form.rb', line 14

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