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: d91a1dc4a7e517bffc4a29b0a7785406e853a253e7994b9f84b3612aaf174184
4
- data.tar.gz: ac9725effcbcce5644cf1dbb19835052071345d9a23a069f64da3f49b8ee3e39
3
+ metadata.gz: 3a58d92f7c0ad7e517b69e5a87634ad7b7fa81ccec8209672e317775d4dbba48
4
+ data.tar.gz: a49ae5fc1af05fbc725ee1ec929a71694242f14de160a8ca5f66bc2a7aebf623
5
5
  SHA512:
6
- metadata.gz: 73cb708fad65283d4add750f5876492b09bb6dba4244a64ba322ef8dbfcbf77ca82315a3d419bbece16fa4eb5f34188e0c184a7ad712c0b49420573b5fc434b1
7
- data.tar.gz: 3ded032babbcd3f735c6b021436911c5bfdd70545fc58baa81b993a1003d2ca9659b0e1e3a33b66eda0f412416c4da695817253571f954f88f507ada51c6c6db
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 request_collecting_begin_date&.<(DateTime.now) && request_collecting_end_date&.>(DateTime.now)
17
+ return :are_being_right_now if begin_date&.past? && end_date&.future?
18
18
  end
19
19
  end
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Event
3
- VERSION = '1.8.2'
3
+ VERSION = '1.8.3'
4
4
  end
5
5
  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.2
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-17 00:00:00.000000000 Z
11
+ date: 2018-10-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rails engine for events
14
14
  email: