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: a264dfd85c5b13ea448ab750ef72fe19107f2e17b4b5683e3baa501bf0bcec4c
4
- data.tar.gz: 793a7f928e10a34e410902e30cc70956b011e30ad08158d377bf354325daa9e2
3
+ metadata.gz: eef7fe99ab1ec0d4bec0ad605575153a0e1d2a13bfcd55dc6b2b8facdd96f3da
4
+ data.tar.gz: 19569ebfa012c6e7abcbd0e27fcb621cd0e571e8fbe97347fe4d4d83f542bb7c
5
5
  SHA512:
6
- metadata.gz: 547f9d45a157682bf95ddedbbe1017b4ee47000c10b1009aad0fbe95803e98fd64929c729c7db3dea4e28c01b1cf1e32ec4c325bfbf80776876d15c15a456fd4
7
- data.tar.gz: 5bac60310e328be77c49a409697be6ad35fb06afe5de92464a1c2cdc0f8ea238e632cfc698198b0207d3039771b8ca5d6026fb422d6a1b3018084f6058f3b867
6
+ metadata.gz: c6c65849fd77142cbda13f6782516acf4293d48d78479b4ba9f42a2c17ff0e03eb8487f975e62cc4902e968e1845985fdb6ef2714907b945285e1c57c2ed2429
7
+ data.tar.gz: 7e1aae01e8ff58c029314b09626dff52d6c0de9d166689b881509a9591c7a07533d555035801f72c676e81453de46c660a2f6d11c9ab925510b21e2f2977e4a8
@@ -82,6 +82,8 @@ class Tramway::Event::ParticipantDecorator < ::Tramway::Core::ApplicationDecorat
82
82
  :danger
83
83
  when :reserve
84
84
  :warning
85
+ when :return_to_requested
86
+ :warning
85
87
  end
86
88
  end
87
89
 
@@ -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 }
@@ -22,3 +22,4 @@ ru:
22
22
  approve: Окончательно подтвердить
23
23
  not_got_answer: Связаться не удалось
24
24
  reserve: Отправить в резерв
25
+ return_to_requested: Вернуть в необработанные
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Event
3
- VERSION = '1.9.11.2'
3
+ VERSION = '1.9.12'
4
4
  end
5
5
  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.9.11.2
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-10 00:00:00.000000000 Z
11
+ date: 2019-06-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rails engine for events
14
14
  email: