Sha256: 8c5f1174d4e8f562ddbde6c7761ef3a5b640854f9b4d9731b967b12d75600397
Contents?: true
Size: 982 Bytes
Versions: 2
Compression:
Stored size: 982 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.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tramway-event-1.8.4 | app/controllers/tramway/event/events_controller.rb |
tramway-event-1.8.3 | app/controllers/tramway/event/events_controller.rb |