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 +4 -4
- data/app/decorators/tramway/event/event_decorator.rb +1 -5
- data/app/decorators/tramway/event/events/show/event_decorator.rb +1 -6
- data/app/decorators/tramway/event/participant_form_field_decorator.rb +1 -3
- data/app/decorators/tramway/event/section_feature_decorator.rb +1 -3
- data/lib/tramway/event/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0674dd966cc5ac9d44ffdf58d117cf1288d5d86b72613ecefeba1f11fb3fe93
|
4
|
+
data.tar.gz: e4d6e8a4a2c9ea6d804d789c93c9975498b3375f6cd57b1af7fe28b7d4f068bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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(' ')
|
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-
|
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.
|
138
|
+
rubygems_version: 3.1.2
|
139
139
|
signing_key:
|
140
140
|
specification_version: 4
|
141
141
|
summary: Rails engine for events
|