app/controllers/tramway/event/events_controller.rb in tramway-event-1.12.6.2 vs app/controllers/tramway/event/events_controller.rb in tramway-event-1.12.6.3

- old
+ new

@@ -5,17 +5,17 @@ def show event = ::Tramway::Event::Event.find params[:id] @event = ::Tramway::Event::Events::Show::EventDecorator.decorate event @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 } + @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.actual.map { |e| ::Tramway::Event::Events::Show::EventDecorator.decorate e } - @people_as_features = @event.partakings.active.map { |p| ::Tramway::Event::PartakingFeatureDecorator.decorate p } + @events = ::Tramway::Event::Event.actual.map { |e| ::Tramway::Event::Events::Show::EventDecorator.decorate e } + @people_as_features = @event.partakings.map { |p| ::Tramway::Event::PartakingFeatureDecorator.decorate p } if defined?(::Tramway::Partner) @partners = ::Tramway::Partner::Partnership.partnership_type.values.reduce({}) do |hash, partnership_type| - hash.merge! partnership_type => (event.send(partnership_type.to_s.pluralize).active.map do |partner| + hash.merge! partnership_type => (event.send(partnership_type.to_s.pluralize).map do |partner| Tramway::Partner::OrganizationFeatureDecorator.decorate partner end) end end end