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