diff options
author | Matija Čupić <matteeyah@gmail.com> | 2019-05-06 17:33:01 -0400 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2019-05-06 17:33:01 -0400 |
commit | 17e99aa5c7bc42be0ab961fb20987e238694ce88 (patch) | |
tree | 7b354fd6e6cd7203aecc48ad7b930fd2b1e29806 | |
parent | e1aa7f5074aab8190d16a6f25121d33b99a07238 (diff) | |
download | gitlab-ce-17e99aa5c7bc42be0ab961fb20987e238694ce88.tar.gz |
Backport EE changesmc/feature/pipeline-tracking-ce
Backports the EE changes from
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/11264
-rw-r--r-- | app/models/concerns/has_status.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/concerns/has_status.rb b/app/models/concerns/has_status.rb index 8882f48c281..78bcce2f592 100644 --- a/app/models/concerns/has_status.rb +++ b/app/models/concerns/has_status.rb @@ -66,6 +66,10 @@ module HasStatus def all_state_names state_machines.values.flat_map(&:states).flat_map { |s| s.map(&:name) } end + + def completed_statuses + COMPLETED_STATUSES.map(&:to_sym) + end end included do |