diff options
author | Alessio Caiazza <acaiazza@gitlab.com> | 2017-11-07 13:58:36 +0100 |
---|---|---|
committer | Alessio Caiazza <acaiazza@gitlab.com> | 2017-11-07 14:05:58 +0100 |
commit | 0562b02bc2be0716be3cd11da151bf6531a8c59a (patch) | |
tree | 76ff728bbeddee96b0c13ed9ad33fc9e1b300cb5 /app | |
parent | 3f261a499e37daf81716f9c3f8e71db7afdf0d5c (diff) | |
download | gitlab-ce-0562b02bc2be0716be3cd11da151bf6531a8c59a.tar.gz |
Do not use %i() in state machines
Diffstat (limited to 'app')
-rw-r--r-- | app/models/clusters/concerns/application_status.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/clusters/concerns/application_status.rb b/app/models/clusters/concerns/application_status.rb index 3e15da7fc32..ce1b6621479 100644 --- a/app/models/clusters/concerns/application_status.rb +++ b/app/models/clusters/concerns/application_status.rb @@ -13,15 +13,15 @@ module Clusters state :installed, value: 3 event :make_scheduled do - transition %i(installable errored) => :scheduled + transition [:installable, :errored] => :scheduled end event :make_installing do - transition %i(scheduled) => :installing + transition [:scheduled] => :installing end event :make_installed do - transition %i(installing) => :installed + transition [:installing] => :installed end event :make_errored do |