tramway-event 1.6 → 1.6.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc602ac539cba79d19723b5f08fdd5b19ec05feb636287625bbc3acdf8a850dd
|
4
|
+
data.tar.gz: 06af3c19b02f9b7c364c23092a5300e62c094423b4b56c502617bf2201e88e1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ae386fe96c0d73e1c53615ae81d4d3fb742f6e01431067de773085deaff26a7cb7cefc33d613a5e4deddc8995f588d72245e3cf5726aad4d1ab29d2a3ddd48e
|
7
|
+
data.tar.gz: 839c0eafd86a5cd61c6d684cd59794be6b3e71a79c1212154fcf31ed17a2b4c9e47f5c2d883e9696cff45ec3f270a38d5d5e5bbb8e28f38383ea287a24db9f06
|
@@ -3,6 +3,10 @@ class Tramway::Event::SectionDecorator < ::Tramway::Landing::BlockTypes::Feature
|
|
3
3
|
def collections
|
4
4
|
[ :all ]
|
5
5
|
end
|
6
|
+
|
7
|
+
def list_attributes
|
8
|
+
[ :event_title ]
|
9
|
+
end
|
6
10
|
end
|
7
11
|
|
8
12
|
delegate :description, to: :object
|
@@ -19,4 +23,8 @@ class Tramway::Event::SectionDecorator < ::Tramway::Landing::BlockTypes::Feature
|
|
19
23
|
def anchor
|
20
24
|
"section-#{object.id}"
|
21
25
|
end
|
26
|
+
|
27
|
+
def event_title
|
28
|
+
object.event.title
|
29
|
+
end
|
22
30
|
end
|
@@ -18,7 +18,7 @@ class Tramway::Event::Participant < ::Tramway::Event::ApplicationRecord
|
|
18
18
|
end
|
19
19
|
|
20
20
|
event :reject do
|
21
|
-
transition [ :requested, :without_answer, :waiting ] => :rejected
|
21
|
+
transition [ :requested, :without_answer, :waiting, :prev_approved ] => :rejected
|
22
22
|
end
|
23
23
|
|
24
24
|
event :approve do
|