app/controllers/tramway/event/events_controller.rb in tramway-event-0.4.1 vs app/controllers/tramway/event/events_controller.rb in tramway-event-0.5
- old
+ new
@@ -1,7 +1,9 @@
class Tramway::Event::EventsController < Tramway::Event::ApplicationController
layout 'tramway/landing/application'
def show
@event = ::Tramway::Event::EventDecorator.decorate ::Tramway::Event::Event.find params[:id]
+ form_class = ::Tramway::Core::ExtendableForm.new "ParticipantExtendedForm#{request.uuid.gsub('-', '')}", *@event.participant_form_fields.map(&:title).map(&:to_sym)
+ @participant_form = form_class.new ::Tramway::Event::Participant.new
end
end