tramway-event 1.8.2 → 1.8.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a58d92f7c0ad7e517b69e5a87634ad7b7fa81ccec8209672e317775d4dbba48
|
4
|
+
data.tar.gz: a49ae5fc1af05fbc725ee1ec929a71694242f14de160a8ca5f66bc2a7aebf623
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf0ec8f8f74aa036fcc61859b9d57b08852b45498eb0234520ba87d37eef7904464cd6777309bf5cb329ab02025aa03e1e9ea0e7dd7d2d14890496e54add5dae
|
7
|
+
data.tar.gz: 448e3f6a9bf3a43797353748675c5f9b06dd0b73a41106a6125939d0b7694e7a8d60a1d52296a80d6554ebf6ef2c5b5788cc5d3f31cd1cb862ca658582af1a32
|
@@ -4,8 +4,8 @@ class Tramway::Event::EventsController < Tramway::Event::ApplicationController
|
|
4
4
|
def show
|
5
5
|
@event = ::Tramway::Event::Events::Show::EventDecorator.decorate ::Tramway::Event::Event.find params[:id]
|
6
6
|
@participant_form = ::Tramway::Event::ParticipantExtendedFormCreator.create_form_class(request.uuid, @event).new ::Tramway::Event::Participant.new
|
7
|
-
@sections_as_features = @event.sections.order(position: :asc).map { |s| ::Tramway::Event::SectionFeatureDecorator.decorate s }
|
8
|
-
@sections = @event.sections.order(position: :asc).map { |s| ::Tramway::Event::SectionDecorator.decorate s }
|
7
|
+
@sections_as_features = @event.sections.active.order(position: :asc).map { |s| ::Tramway::Event::SectionFeatureDecorator.decorate s }
|
8
|
+
@sections = @event.sections.active.order(position: :asc).map { |s| ::Tramway::Event::SectionDecorator.decorate s }
|
9
9
|
@footer = ::Tramway::Landing::BlockDecorator.decorate ::Tramway::Landing::Block.footer
|
10
10
|
@events = ::Tramway::Event::Event.active.map { |e| ::Tramway::Event::Events::Show::EventDecorator.decorate e }
|
11
11
|
@people_as_features = @event.partakings.active.map { |p| ::Tramway::Event::PartakingFeatureDecorator.decorate p }
|
@@ -14,6 +14,6 @@ class Tramway::Event::Event < ::Tramway::Event::ApplicationRecord
|
|
14
14
|
return :not_initialized unless request_collecting_begin_date.present? || request_collecting_end_date.present?
|
15
15
|
return :will_begin_soon if request_collecting_begin_date > DateTime.now
|
16
16
|
return :is_over if request_collecting_end_date < DateTime.now
|
17
|
-
return :are_being_right_now if
|
17
|
+
return :are_being_right_now if begin_date&.past? && end_date&.future?
|
18
18
|
end
|
19
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tramway-event
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Rails engine for events
|
14
14
|
email:
|