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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30ef78204cd4ee382b3d6fe1f2ea0aee9a6a73dfa20763b7d7315b035dd66840
|
4
|
+
data.tar.gz: 0f809850f6a465cc37bd40aea40ead15e884c5c6cbb1d0bc0c0010859bcce088
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
18
|
-
|
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
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
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
|
|
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.
|
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-
|
11
|
+
date: 2020-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Rails engine for events
|
14
14
|
email:
|