tramway-event 1.9.11.2 → 1.9.12
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: eef7fe99ab1ec0d4bec0ad605575153a0e1d2a13bfcd55dc6b2b8facdd96f3da
|
4
|
+
data.tar.gz: 19569ebfa012c6e7abcbd0e27fcb621cd0e571e8fbe97347fe4d4d83f542bb7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6c65849fd77142cbda13f6782516acf4293d48d78479b4ba9f42a2c17ff0e03eb8487f975e62cc4902e968e1845985fdb6ef2714907b945285e1c57c2ed2429
|
7
|
+
data.tar.gz: 7e1aae01e8ff58c029314b09626dff52d6c0de9d166689b881509a9591c7a07533d555035801f72c676e81453de46c660a2f6d11c9ab925510b21e2f2977e4a8
|
@@ -23,7 +23,7 @@ class Tramway::Event::Participant < ::Tramway::Event::ApplicationRecord
|
|
23
23
|
end
|
24
24
|
|
25
25
|
event :approve do
|
26
|
-
transition [ :prev_approved, :reserved ] => :approved
|
26
|
+
transition [ :prev_approved, :reserved, :requested ] => :approved
|
27
27
|
end
|
28
28
|
|
29
29
|
event :not_got_answer do
|
@@ -33,6 +33,10 @@ class Tramway::Event::Participant < ::Tramway::Event::ApplicationRecord
|
|
33
33
|
event :reserve do
|
34
34
|
transition [ :requested, :without_answer, :waiting ] => :reserved
|
35
35
|
end
|
36
|
+
|
37
|
+
event :return_to_requested do
|
38
|
+
transition rejected: :requested
|
39
|
+
end
|
36
40
|
end
|
37
41
|
|
38
42
|
scope :requested, -> { where participation_state: :requested }
|
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.9.
|
4
|
+
version: 1.9.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Rails engine for events
|
14
14
|
email:
|