app/controllers/tramway/event/events_controller.rb in tramway-event-0.6 vs app/controllers/tramway/event/events_controller.rb in tramway-event-0.7

- old
+ new

@@ -1,10 +1,10 @@ class Tramway::Event::EventsController < Tramway::Event::ApplicationController layout 'tramway/landing/application' def show @event = ::Tramway::Event::EventDecorator.decorate ::Tramway::Event::Event.find params[:id] - class_name = "ParticipantExtendedFormEventId#{@event.id}" + class_name = "ParticipantExtendedForm#{request.uuid.gsub('-', '')}" form_class = ::Tramway::Core::ExtendableForm.new(class_name, *@event.participant_form_fields.inputs_list.map(&:title).map(&:to_sym)) @participant_form = form_class.new ::Tramway::Event::Participant.new end end