tramway-event 1.12.5 → 1.12.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: d121186f0802faa7e890e235cd07afc828636b586bf671053c3b4a83bf9fda09
4
- data.tar.gz: 81be3b2a3f82064665b338c99e35efcbe464fb19fc1127963c122f733e3ce573
3
+ metadata.gz: 0c5cea79e8830c3db57b2657e8df6e27d0c09f6136fc96336760c2b84f05d225
4
+ data.tar.gz: 807718fa455cc0f29643e23a532b0bddec678cb2decdcd123e30ac6ffa7165f5
5
5
  SHA512:
6
- metadata.gz: 6068964cbc7cf4a881b66b0ade16906cd3bc9ecb83e51cfe1e003a12965086e11070cec129f9e73ee9d74b90cf28241f6f6cc26ba1adcfbd248dc79166ea0857
7
- data.tar.gz: b1bf89d6baa2848dbfd91f25bbe62e487a6985eede76579e241254d186d5760668bdbfc199666466f8ac0ae7b83162fadece825e33b7e4565fdecc43edf627ce
6
+ metadata.gz: 3ef4fb14eef67149617974d2c2da311be4bb6de80944be5b92d6ee95745b3a6aa0b8e4d8c573fd77152d911f6b73c800409f39eafb42f75abf5a7bcb9311db44
7
+ data.tar.gz: 59660760d05f0667a9e759dad0ec9b9ea44f7e40d75477312eb466138244fce01ff292d6a0cca984d330269aff990b21ddf0c4ddf7d9fe6a9c6a25ca52cdc061
@@ -23,7 +23,7 @@ class Tramway::Event::EventDecorator < ::Tramway::Core::ApplicationDecorator
23
23
  decorate_associations :participants, :partnerships, :organizations
24
24
  decorate_association :participant_form_fields, as: :event
25
25
  decorate_association :sections, as: :event
26
- decorate_association :partakings, as: :event
26
+ decorate_association :partakings, as: :part
27
27
  decorate_association :actions, as: :event, state_machines: [:action_state]
28
28
 
29
29
  def background
@@ -5,11 +5,15 @@ class Tramway::Event::SectionDecorator < ::Tramway::Landing::BlockTypes::Feature
5
5
  def collections
6
6
  [:all]
7
7
  end
8
+
9
+ def show_associations
10
+ [ :partakings ]
11
+ end
8
12
  end
9
13
 
10
14
  delegate :description, to: :object
11
15
  decorate_association :event
12
- decorate_association :partakings, decorator: Tramway::Event::PartakingFeatureDecorator
16
+ decorate_association :partakings, as: :part, decorator: Tramway::Event::PartakingFeatureDecorator
13
17
 
14
18
  def name
15
19
  "#{object.title} | #{object.event.title}"
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Event
5
- VERSION = '1.12.5'
5
+ VERSION = '1.12.6'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-event
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.5
4
+ version: 1.12.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov