Sha256: eaa4291efd81e9da4a969a715e0cb6f6d6c04b97cecdf25df605219e2168f563
Contents?: true
Size: 405 Bytes
Versions: 7
Compression:
Stored size: 405 Bytes
Contents
class Tramway::Event::ParticipantExtendedFormCreator < Tramway::Core::FormCreator def self.create_form_class(uuid, event) class_name = "ParticipantExtendedForm#{uuid.gsub('-', '')}" properties = event.participant_form_fields.inputs_list.reduce({}) do |hash, field| hash.merge! field.title.to_sym => field end ::Tramway::Core::ExtendableForm.new(class_name, **properties) end end
Version data entries
7 entries across 7 versions & 1 rubygems