diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-20 13:06:45 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-20 13:06:45 +0200 |
commit | 470661e1a70bd3c8415387e9068823536d1fb1bc (patch) | |
tree | eda2ffb6a4e847e5bb45f5fa19c4fe291a72efd6 /app | |
parent | 0605cdd7590b12bad073bf41f3e793274e931a80 (diff) | |
download | gitlab-ce-470661e1a70bd3c8415387e9068823536d1fb1bc.tar.gz |
Change a method name which enumerates CI/CD statuses
Diffstat (limited to 'app')
-rw-r--r-- | app/models/ci/stage.rb | 2 | ||||
-rw-r--r-- | app/models/concerns/has_status.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/ci/stage.rb b/app/models/ci/stage.rb index ca89caf4782..c163d047127 100644 --- a/app/models/ci/stage.rb +++ b/app/models/ci/stage.rb @@ -4,7 +4,7 @@ module Ci include Importable include HasStatus - enumerated_status! + enumerate_status! belongs_to :project belongs_to :pipeline diff --git a/app/models/concerns/has_status.rb b/app/models/concerns/has_status.rb index a94226bb735..758d71b7f4c 100644 --- a/app/models/concerns/has_status.rb +++ b/app/models/concerns/has_status.rb @@ -12,7 +12,7 @@ module HasStatus failed: 4, canceled: 5, skipped: 6, manual: 7 }.freeze class_methods do - def enumerated_status! + def enumerate_status! enum status: HasStatus::STATUSES_ENUM end |