tramway-event 1.9.19.5 → 1.9.19.6

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: f50e33baf942aae50cdad1e1a81a33e177b155c4cb03fb54fc8019fbdabc8be8
4
- data.tar.gz: e2be5daa64cc778445d6d1098a0f5662208890c7c6f40a403b67e8165c3c09af
3
+ metadata.gz: 30ef78204cd4ee382b3d6fe1f2ea0aee9a6a73dfa20763b7d7315b035dd66840
4
+ data.tar.gz: 0f809850f6a465cc37bd40aea40ead15e884c5c6cbb1d0bc0c0010859bcce088
5
5
  SHA512:
6
- metadata.gz: 3fb3431866672725cb869ca1925f1a6022463f511363e7d4582b9484b40da6b2aec04b839eb06f0232f4f791cdf010caf666b74460dc114fbd1ed7c19f18fd59
7
- data.tar.gz: 5345d1e963710e49a66e88e33203eac2e2d77ed6c5f239604d8af968a93880b62c4f37b62e7effc10a751f14a6525fd4e53e14411353b580abfe4f460ad300f8
6
+ metadata.gz: e79568865d3c6cf054cde85248c3807da326d38fb64b1ca8428276bec75dc3f68821fac6dc8e9a07529caa36f5aa35f2662ec57ac591c33bbffd3278bf46d645
7
+ data.tar.gz: 3f19ed519d3052c77806f16412ca89400b12db5285d496bb23d0b9ae7cd642ac2fc492b0b07139fd91f1b17804b5342e0110ae093ad438a9d5130609538387cd
@@ -14,8 +14,10 @@ class Tramway::Event::Events::Show::EventDecorator < ::Tramway::Core::Applicatio
14
14
  delegate :partakings, to: :object
15
15
  delegate :request_collecting_state, to: :object
16
16
 
17
- ::Tramway::Partner::Partnership.partnership_type.values.each do |partnership_type|
18
- decorate_association partnership_type.to_s.pluralize
17
+ if defined?(::Tramway::Partner)
18
+ ::Tramway::Partner::Partnership.partnership_type.values.each do |partnership_type|
19
+ decorate_association partnership_type.to_s.pluralize
20
+ end
19
21
  end
20
22
 
21
23
  def background
@@ -33,10 +35,12 @@ class Tramway::Event::Events::Show::EventDecorator < ::Tramway::Core::Applicatio
33
35
  end
34
36
 
35
37
  def partners
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|
38
- Tramway::Partner::OrganizationFeatureDecorator.decorate partner
39
- end)
38
+ if defined?(::Tramway::Partner)
39
+ @partners ||= ::Tramway::Partner::Partnership.partnership_type.values.reduce({}) do |hash, partnership_type|
40
+ hash.merge! partnership_type => (object.send(partnership_type.to_s.pluralize).active.map do |partner|
41
+ Tramway::Partner::OrganizationFeatureDecorator.decorate partner
42
+ end)
43
+ end
40
44
  end
41
45
  end
42
46
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Event
5
- VERSION = '1.9.19.5'
5
+ VERSION = '1.9.19.6'
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.9.19.5
4
+ version: 1.9.19.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-10 00:00:00.000000000 Z
11
+ date: 2020-01-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rails engine for events
14
14
  email: