Sha256: a6bba951ec7b2986040bd2c2da2c9b03b998e664a093b81b439f91bdc4742574

Contents?: true

Size: 508 Bytes

Versions: 1

Compression:

Stored size: 508 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 = "ParticipantExtendedFormEventId#{@event.id}"
    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

1 entries across 1 versions & 1 rubygems

Version Path
tramway-event-0.6 app/controllers/tramway/event/events_controller.rb