tramway-event 1.11.4 → 1.11.4.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: 93bc58cd7df860dbf9ba85c35df682c37b9ca9e14342f233ab464fb91d3b896a
4
- data.tar.gz: a89eafa0d5497ccc3002d7ea1645e9cbaf897356ccf31166b2e188e4b86e0bc5
3
+ metadata.gz: a0674dd966cc5ac9d44ffdf58d117cf1288d5d86b72613ecefeba1f11fb3fe93
4
+ data.tar.gz: e4d6e8a4a2c9ea6d804d789c93c9975498b3375f6cd57b1af7fe28b7d4f068bf
5
5
  SHA512:
6
- metadata.gz: bd1703d33a7b25d7ff5962a8a63a7da46e2ea24e281b48817d9c4c602e808ea01e543fdee40564d016f8bf012fa0411cd92b2e816e6f542633a89d71f62bb13e
7
- data.tar.gz: 7e9f245a88be1feb5363ae463f8394783f60b78794d93d57761121840ee0897442d477b6701169e2430416b0e647f458d3431b7da93adc6aa0b77a8c9d4a21ee
6
+ metadata.gz: 4a51bdd0dfa3cb6eb6b7572f32f088befe95cd706e8f95df894f52433bbd433c54208361f8d75cf2d8903d9f9966290602f5776a769ff169f9d9a38128308afc
7
+ data.tar.gz: 2ea5a5d2f5d831d0e7b33974cf7167bdcb27016da4d84b4b5239eb1290ad02af25d81450397fd538db84e92b434855d0001fcfab661fbd9b9a6c7b5f59c2a810
@@ -30,12 +30,8 @@ class Tramway::Event::EventDecorator < ::Tramway::Core::ApplicationDecorator
30
30
  end
31
31
 
32
32
  delegate :title, to: :object
33
- decorate_association :participants
33
+ decorate_associations :participants, :sections, :partakings, :partnerships, :organizations
34
34
  decorate_association :participant_form_fields, as: :event
35
- decorate_association :sections
36
- decorate_association :partakings
37
- decorate_association :partnerships
38
- decorate_association :organizations
39
35
  decorate_association :actions, as: :event, state_machines: [:action_state]
40
36
 
41
37
  def background
@@ -7,12 +7,7 @@ class Tramway::Event::Events::Show::EventDecorator < ::Tramway::Core::Applicatio
7
7
  end
8
8
  end
9
9
 
10
- delegate :title, to: :object
11
- delegate :description, to: :object
12
- delegate :participant_form_fields, to: :object
13
- delegate :sections, to: :object
14
- delegate :partakings, to: :object
15
- delegate :request_collecting_state, to: :object
10
+ delegate_attributes :title, :description, :participant_form_fields, :sections, :partakings, :request_collecting_state
16
11
 
17
12
  if defined?(::Tramway::Partner)
18
13
  ::Tramway::Partner::Partnership.partnership_type.values.each do |partnership_type|
@@ -15,9 +15,7 @@ class Tramway::Event::ParticipantFormFieldDecorator < ::Tramway::Core::Applicati
15
15
  end
16
16
  end
17
17
 
18
- delegate :description, to: :object
19
- delegate :options, to: :object
20
- delegate :position, to: :object
18
+ delegate_attributes :description, :options, :position
21
19
 
22
20
  def title
23
21
  "#{object.title} #{object.event.title}"
@@ -1,9 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ::Tramway::Event::SectionFeatureDecorator < ::Tramway::Landing::BlockTypes::FeaturesDecorator
4
- delegate :icon, to: :object
5
- delegate :title, to: :object
6
- delegate :description, to: :object
4
+ delegate_attributes :icon, :title, :description
7
5
 
8
6
  def text
9
7
  object.description.scan(%r{<strong>.*?</strong>}).join(' ')
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Event
5
- VERSION = '1.11.4'
5
+ VERSION = '1.11.4.1'
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.11.4
4
+ version: 1.11.4.1
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-03-15 00:00:00.000000000 Z
11
+ date: 2020-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: configus
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  - !ruby/object:Gem::Version
136
136
  version: '0'
137
137
  requirements: []
138
- rubygems_version: 3.0.1
138
+ rubygems_version: 3.1.2
139
139
  signing_key:
140
140
  specification_version: 4
141
141
  summary: Rails engine for events