Sha256: 89afadd829a6e17f5bc60d1df7f0c3330225f92bf51722149adb69a409c76cb8
Contents?: true
Size: 989 Bytes
Versions: 6
Compression:
Stored size: 989 Bytes
Contents
class Tramway::Event::EventsController < Tramway::Event::ApplicationController layout 'tramway/landing/application' def show @event = ::Tramway::Event::Events::Show::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.active.order(position: :asc).map { |s| ::Tramway::Event::SectionFeatureDecorator.decorate s } @sections = @event.sections.active.order(position: :asc).map { |s| ::Tramway::Event::SectionDecorator.decorate s } @footer = ::Tramway::Landing::BlockDecorator.decorate ::Tramway::Landing::Block.footer @events = ::Tramway::Event::Event.active.actual.map { |e| ::Tramway::Event::Events::Show::EventDecorator.decorate e } @people_as_features = @event.partakings.active.map { |p| ::Tramway::Event::PartakingFeatureDecorator.decorate p } end end
Version data entries
6 entries across 6 versions & 1 rubygems