tramway-event 1.12.7 → 1.12.8

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: 29c27b41dea39b385832e0663627b1bacbf8be038a0619564a2a8e58b46eb594
4
+ data.tar.gz: 9fc233bd896c0a4f0b5ef8213642b9be2c67ee81dac5edb898dc1b7922fd6e6b
5
5
  SHA512:
6
- metadata.gz: 816e107cf8d8e6241cd430c6289fa61926b66560a91cf7954b529ba487d43ed8f2b3e503048e7d6809c64392339ff83c8a13413404f6551bfc8f29be7426dd1e
7
- data.tar.gz: 7a503e524cca519f19467175190c1aadfcd297d106841292af06b6d2343c9b05cd042c04731072d472024abb85acb671731adbc7cf6575b14ad7b19e0bfccf12
6
+ metadata.gz: cfaa2dec299f7274d7d96deadf7aecc07cba72f381617b07de1461f21a8ec58b5d49f0f3da712780adca69fee0a58e328b63bba9c57c12aec1fc2e4e33292d78
7
+ data.tar.gz: c3f8b0a2acd2ae8d63a72490176602901bad0f4a85409821a6db1d38fb701ee5957d79d9abb027eb951262abd5725b25c4a844798d015b75a32982efa5b768db
@@ -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}"
@@ -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'
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
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov