Sha256: 7f75ec51ee4226d0c44a24e037f99c25a0253f0bd44a88b280a621cff95fb474

Contents?: true

Size: 518 Bytes

Versions: 3

Compression:

Stored size: 518 Bytes

Contents

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 = "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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tramway-event-1.0.1 app/controllers/tramway/event/events_controller.rb
tramway-event-1.0 app/controllers/tramway/event/events_controller.rb
tramway-event-0.7 app/controllers/tramway/event/events_controller.rb