Sha256: 915534272f6593455a9c6cc55ceec3df60e49fe80adaa14ffea045149a7a2317

Contents?: true

Size: 292 Bytes

Versions: 4

Compression:

Stored size: 292 Bytes

Contents

class Tramway::Event::ParticipantExtendedFormCreator
  def self.create_form_class(uuid, event)
    class_name = "ParticipantExtendedForm#{uuid.gsub('-', '')}"
    ::Tramway::Core::ExtendableForm.new(class_name, *event.participant_form_fields.inputs_list.map(&:title).map(&:to_sym))
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tramway-event-1.2.6 app/forms/tramway/event/participant_extended_form_creator.rb
tramway-event-1.2.5 app/forms/tramway/event/participant_extended_form_creator.rb
tramway-event-1.2.4 app/forms/tramway/event/participant_extended_form_creator.rb
tramway-event-1.2.3 app/forms/tramway/event/participant_extended_form_creator.rb