tramway-event 1.12.7 → 1.12.8.1

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: 84351714cbce95a1b7aafc0a214ea11d2723f5af8966e4d95dfa3a371786e746
4
- data.tar.gz: 9908e812262e70188cfe85befbf79312ed5b5175bf39127fede2db9ddb65f9d2
3
+ metadata.gz: 7f3d4f49a9bb6c1caa29977bb9beb18b36451f7cc27d48957eefcb83fe2b270b
4
+ data.tar.gz: a7e9e86a0ac35f967b71b89a4c05684ed1b203954477e797c8efd6b7e69e6ce5
5
5
  SHA512:
6
- metadata.gz: 816e107cf8d8e6241cd430c6289fa61926b66560a91cf7954b529ba487d43ed8f2b3e503048e7d6809c64392339ff83c8a13413404f6551bfc8f29be7426dd1e
7
- data.tar.gz: 7a503e524cca519f19467175190c1aadfcd297d106841292af06b6d2343c9b05cd042c04731072d472024abb85acb671731adbc7cf6575b14ad7b19e0bfccf12
6
+ metadata.gz: 73dd518a46e45fc279c819938b874aa389ed9f25306ee759f2c4eab631aa1e5709ef1149b118dd36310feabf86d8aa1b66331a611a8493faff5881e3908b6b66
7
+ data.tar.gz: 13d0118df63d662cecf4f66294f85cbc15f2414e6060df9d48d90dca6a5206ccea41085942ad8c1525aa42ec1c87df4b92bdc256d4a9a9674a2f475e5b1d6baf
@@ -11,6 +11,7 @@ class Tramway::Event::PartakingDecorator < ::Tramway::Core::ApplicationDecorator
11
11
  end
12
12
  end
13
13
 
14
+ delegate_attributes :position
14
15
  decorate_association :part
15
16
 
16
17
  def name
@@ -7,7 +7,7 @@ class Tramway::Event::PersonDecorator < ::Tramway::Core::ApplicationDecorator
7
7
  end
8
8
  end
9
9
 
10
- decorate_association :sections
10
+ decorate_association :partakings
11
11
 
12
12
  def name
13
13
  "#{object.first_name} #{object.last_name}"
@@ -11,7 +11,7 @@ class Tramway::Event::SectionDecorator < ::Tramway::Landing::BlockTypes::Feature
11
11
  end
12
12
  end
13
13
 
14
- delegate_attributes :description, :created_at
14
+ delegate_attributes :description, :created_at, :photo
15
15
  decorate_association :event
16
16
  decorate_association :partakings, as: :part, decorator: Tramway::Event::PartakingFeatureDecorator
17
17
 
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Tramway::Event::Person < ::Tramway::Core::ApplicationRecord
4
+ has_many :partakings, class_name: 'Tramway::Event::Partaking'
5
+
4
6
  mount_uploader :photo, PhotoUploader
5
7
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Event
5
- VERSION = '1.12.7'
5
+ VERSION = '1.12.8.1'
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.7
4
+ version: 1.12.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov