tramway-event 1.12.6.2 → 1.12.6.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: 0c7a13d81c0f6f396312c7401c34089bf766812f530121a7bf525cd8aaa557bb
4
- data.tar.gz: f82e08ce10379a04c28a3b80cdd26408c21f8314ba29a7dc69544e55001fde12
3
+ metadata.gz: ed98922babffdc1a3de30a4ba9fdaa0a7ee7d27a8ca99e6410f6a78efa69acac
4
+ data.tar.gz: 9e4a42ece100b7438e90e91a4f0173d111ca04acbe269206432bc2402d6d90ae
5
5
  SHA512:
6
- metadata.gz: c9e2b4dd803318ab7db79ce025d62ed8066ab41726f5710dea281bd1fb9586536991efeb3b4ce95364766b57a37e7dfa5025afdfa4b24401cf10b041e6d21e11
7
- data.tar.gz: 219d971dbe76967a917c36891b3be59bb05c3547598a0d62051f0fecd518b84862f37103d01dbee885cf955deecba2f9ea673b76f5009a207cd376b54b7e5694
6
+ metadata.gz: adeb3d5a0efceb9e0d6d3c764cd1445c266aa7049337bd872886c2e07f215eb4a3eb406ee139c091ead1406d42062c7e50662162aa9ee9e7fb04d7ce1b94436e
7
+ data.tar.gz: 320a9180d27c0c5b874ac69a4dc0a8f28aca96d66d6d9715535af4669253b638284e7bc2aad53326dde91a89d90e946fcbc0e808eeb973d36e32b10a0f856ca4
@@ -7,14 +7,14 @@ class Tramway::Event::EventsController < Tramway::Event::ApplicationController
7
7
  event = ::Tramway::Event::Event.find params[:id]
8
8
  @event = ::Tramway::Event::Events::Show::EventDecorator.decorate event
9
9
  @participant_form = ::Tramway::Event::ParticipantExtendedFormCreator.create_form_class(request.uuid, @event).new ::Tramway::Event::Participant.new
10
- @sections_as_features = @event.sections.active.order(position: :asc).map { |s| ::Tramway::Event::SectionFeatureDecorator.decorate s }
11
- @sections = @event.sections.active.order(position: :asc).map { |s| ::Tramway::Event::SectionDecorator.decorate s }
10
+ @sections_as_features = @event.sections.order(position: :asc).map { |s| ::Tramway::Event::SectionFeatureDecorator.decorate s }
11
+ @sections = @event.sections.order(position: :asc).map { |s| ::Tramway::Event::SectionDecorator.decorate s }
12
12
  @footer = ::Tramway::Landing::BlockDecorator.decorate ::Tramway::Landing::Block.footer
13
- @events = ::Tramway::Event::Event.active.actual.map { |e| ::Tramway::Event::Events::Show::EventDecorator.decorate e }
14
- @people_as_features = @event.partakings.active.map { |p| ::Tramway::Event::PartakingFeatureDecorator.decorate p }
13
+ @events = ::Tramway::Event::Event.actual.map { |e| ::Tramway::Event::Events::Show::EventDecorator.decorate e }
14
+ @people_as_features = @event.partakings.map { |p| ::Tramway::Event::PartakingFeatureDecorator.decorate p }
15
15
  if defined?(::Tramway::Partner)
16
16
  @partners = ::Tramway::Partner::Partnership.partnership_type.values.reduce({}) do |hash, partnership_type|
17
- hash.merge! partnership_type => (event.send(partnership_type.to_s.pluralize).active.map do |partner|
17
+ hash.merge! partnership_type => (event.send(partnership_type.to_s.pluralize).map do |partner|
18
18
  Tramway::Partner::OrganizationFeatureDecorator.decorate partner
19
19
  end)
20
20
  end
@@ -77,7 +77,7 @@ class Tramway::Event::EventDecorator < ::Tramway::Core::ApplicationDecorator
77
77
  end
78
78
 
79
79
  def requested_participants
80
- object.participants.active.count
80
+ object.participants.count
81
81
  end
82
82
 
83
83
  def approved_participants
@@ -34,7 +34,7 @@ class Tramway::Event::Events::Show::EventDecorator < ::Tramway::Core::Applicatio
34
34
  def partners
35
35
  if defined?(::Tramway::Partner)
36
36
  @partners ||= ::Tramway::Partner::Partnership.partnership_type.values.reduce({}) do |hash, partnership_type|
37
- hash.merge! partnership_type => (object.send(partnership_type.to_s.pluralize).active.map do |partner|
37
+ hash.merge! partnership_type => (object.send(partnership_type.to_s.pluralize).map do |partner|
38
38
  Tramway::Partner::OrganizationFeatureDecorator.decorate partner
39
39
  end)
40
40
  end
@@ -44,7 +44,7 @@ class Tramway::Event::ParticipantDecorator < ::Tramway::Core::ApplicationDecorat
44
44
  object.event.title
45
45
  end)
46
46
  end)
47
- object.event.participant_form_fields.active.map do |field|
47
+ object.event.participant_form_fields.map do |field|
48
48
  hash = if field.options.is_a?(Hash)
49
49
  field.options
50
50
  else
@@ -20,7 +20,7 @@ class Tramway::Event::ParticipantXlsDecorator < Tramway::Export::Xls::Applicatio
20
20
  end
21
21
 
22
22
  def flexible_columns
23
- object.event.participant_form_fields.active.order(position: :asc).map(&:title).map do |key|
23
+ object.event.participant_form_fields.order(position: :asc).map(&:title).map do |key|
24
24
  { Tramway::Event::Participant.human_attribute_name(key).to_sym => -> { values&.dig(key) } }
25
25
  end
26
26
  end
@@ -10,7 +10,7 @@
10
10
  ::Tramway::Event::Action,
11
11
  project: :event)
12
12
  ::Tramway::Admin.set_notificable_queries new_participants: lambda { |current_user|
13
- ::Tramway::Event::Participant.active.where(participation_state: :requested).send "#{current_user.role}_scope", current_user.id
13
+ ::Tramway::Event::Participant.where(participation_state: :requested).send "#{current_user.role}_scope", current_user.id
14
14
  }
15
15
 
16
16
  ::Tramway::Landing.head_content = lambda do
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Event
5
- VERSION = '1.12.6.2'
5
+ VERSION = '1.12.6.3'
6
6
  end
7
7
  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.12.6.2
4
+ version: 1.12.6.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: 2021-02-04 00:00:00.000000000 Z
11
+ date: 2021-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: configus
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  - !ruby/object:Gem::Version
136
136
  version: '0'
137
137
  requirements: []
138
- rubygems_version: 3.1.2
138
+ rubygems_version: 3.0.3.1
139
139
  signing_key:
140
140
  specification_version: 4
141
141
  summary: Rails engine for events