tramway-event 1.12.6.4 → 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: 272ccb2552ee3c51554049f491fabc6354d27704a70855b0e936bd09eadbe8c6
4
- data.tar.gz: f1f60419661c3117c62709533369993916b0800183a57236f79cce874a7d4d68
3
+ metadata.gz: 29c27b41dea39b385832e0663627b1bacbf8be038a0619564a2a8e58b46eb594
4
+ data.tar.gz: 9fc233bd896c0a4f0b5ef8213642b9be2c67ee81dac5edb898dc1b7922fd6e6b
5
5
  SHA512:
6
- metadata.gz: 0d918788e1a99e936554c870eb33865d2aa6debb844c6e3c303cfeca81afbc48f375580df3fc72ca186de09db6404083b0820cc6d238501e7e095a007647f763
7
- data.tar.gz: f8381014deb9219d64cd60024a2621f6a862b7abc670b8ec1ef249ba82b11a22ecc24e0c2570033e53f1e7882701c8a81245a3105f8d8a6041496d3ecf44b5d4
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}"
@@ -11,7 +11,7 @@ class Tramway::Event::SectionDecorator < ::Tramway::Landing::BlockTypes::Feature
11
11
  end
12
12
  end
13
13
 
14
- delegate :description, to: :object
14
+ delegate_attributes :description, :created_at
15
15
  decorate_association :event
16
16
  decorate_association :partakings, as: :part, decorator: Tramway::Event::PartakingFeatureDecorator
17
17
 
@@ -5,7 +5,7 @@ class Tramway::Event::ParticipantFormField < ::Tramway::Core::ApplicationRecord
5
5
 
6
6
  enumerize :field_type, in: %i[text string numeric date_picker select checkbox], default: :text
7
7
 
8
- scope :inputs_list, -> { active.order(position: :asc) }
8
+ scope :inputs_list, -> { order(position: :asc) }
9
9
 
10
10
  def required
11
11
  options.present? && options.dig('validations', 'presence') == 'true'
@@ -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.6.4'
5
+ VERSION = '1.12.8'
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.12.6.4
4
+ version: 1.12.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-17 00:00:00.000000000 Z
11
+ date: 2022-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: configus