Sha256: 107eae5dffe13fe3533c2cbc76c23c0711c6ad96e6ebfaeffffa5ecae623c635

Contents?: true

Size: 630 Bytes

Versions: 5

Compression:

Stored size: 630 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]
    @participant_form = ::Tramway::Event::ParticipantExtendedFormCreator.create_form_class(request.uuid, @event).new ::Tramway::Event::Participant.new
    @sections_as_features = @event.sections.order(position: :asc).map { |s| ::Tramway::Event::SectionFeatureDecorator.decorate s }
    @sections = @event.sections.order(position: :asc).map { |s| ::Tramway::Event::SectionDecorator.decorate s }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tramway-event-1.3 app/controllers/tramway/event/events_controller.rb
tramway-event-1.2.6 app/controllers/tramway/event/events_controller.rb
tramway-event-1.2.5 app/controllers/tramway/event/events_controller.rb
tramway-event-1.2.4 app/controllers/tramway/event/events_controller.rb
tramway-event-1.2.3 app/controllers/tramway/event/events_controller.rb