Sha256: 5efbebaed352b33134f63db73072c24e4bf6aa751467e221bf65f1523b22989a

Contents?: true

Size: 822 Bytes

Versions: 11

Compression:

Stored size: 822 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 }
    @footer = ::Tramway::Landing::BlockDecorator.decorate ::Tramway::Landing::Block.footer
    @events = ::Tramway::Event::Event.active.map { |e| ::Tramway::Event::EventDecorator.decorate e }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
tramway-event-1.6.4 app/controllers/tramway/event/events_controller.rb
tramway-event-1.6.3 app/controllers/tramway/event/events_controller.rb
tramway-event-1.6.2 app/controllers/tramway/event/events_controller.rb
tramway-event-1.6.1 app/controllers/tramway/event/events_controller.rb
tramway-event-1.6 app/controllers/tramway/event/events_controller.rb
tramway-event-1.5.4 app/controllers/tramway/event/events_controller.rb
tramway-event-1.5.3 app/controllers/tramway/event/events_controller.rb
tramway-event-1.5.2 app/controllers/tramway/event/events_controller.rb
tramway-event-1.5.1 app/controllers/tramway/event/events_controller.rb
tramway-event-1.5 app/controllers/tramway/event/events_controller.rb
tramway-event-1.4 app/controllers/tramway/event/events_controller.rb