Sha256: b40517ef2100a2984d95a0333b8878a4ee0da371f052ce28fd9f60cf5ebdd099
Contents?: true
Size: 445 Bytes
Versions: 69
Compression:
Stored size: 445 Bytes
Contents
# frozen_string_literal: true module Decidim module Amendable # A form object used to promote emendations class PromoteForm < Decidim::Amendable::Form mimic :amendment attribute :id, Integer attribute :emendation_params, Hash validates :id, presence: true def map_model(model) self.emendation_params = model.emendation.attributes.slice(*amendable_fields_as_string) end end end end
Version data entries
69 entries across 69 versions & 1 rubygems