tramway-event 1.9.19 → 1.9.19.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/tramway/event/participant.rb +4 -4
- data/lib/tramway/event/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41f0767e6a896e151cc837b8728ee5175e2441fc2ecfbb3e2afcff941e199b5f
|
4
|
+
data.tar.gz: 6d37f908a7618031f73771de99e46ebacddf80503c30c5e8c8caf108d3497a47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfdebc74750ff1e24f39294707007227512045e16a1c47ac67a1d25914735f62f4ad805eb91ee26adc63e5e9d0a00cd670ba96162c69832a51de519b93e7877e
|
7
|
+
data.tar.gz: 4ad68d335c853d2338188c48c1fd236308588de1b0670828c3361b0da14fe62e88341c59cdd1a9df3c5ca7b34f2df3476bfcd683b6fbd3ebbb75916ba0d2c268
|
@@ -18,6 +18,10 @@ class Tramway::Event::Participant < ::Tramway::Event::ApplicationRecord
|
|
18
18
|
transition [ :requested, :without_answer ] => :waiting
|
19
19
|
end
|
20
20
|
|
21
|
+
event :reserve do
|
22
|
+
transition [ :requested, :without_answer, :waiting ] => :reserved
|
23
|
+
end
|
24
|
+
|
21
25
|
event :reject do
|
22
26
|
transition [ :requested, :without_answer, :waiting, :prev_approved, :reserved ] => :rejected
|
23
27
|
end
|
@@ -30,10 +34,6 @@ class Tramway::Event::Participant < ::Tramway::Event::ApplicationRecord
|
|
30
34
|
transition requested: :without_answer
|
31
35
|
end
|
32
36
|
|
33
|
-
event :reserve do
|
34
|
-
transition [ :requested, :without_answer, :waiting ] => :reserved
|
35
|
-
end
|
36
|
-
|
37
37
|
event :return_to_requested do
|
38
38
|
transition [ :prev_approved, :rejected ] => :requested
|
39
39
|
end
|