diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2019-05-07 17:10:57 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2019-05-07 17:10:57 +0300 |
commit | cc66ecb0700130b718691e0fa3b0687e366e013f (patch) | |
tree | 9665725c876b0ff069682648aeeef5548a515253 /app | |
parent | 636c138bb6945357c310e8a3e8acfd0a19888a84 (diff) | |
parent | 17e99aa5c7bc42be0ab961fb20987e238694ce88 (diff) |
Merge branch 'mc/feature/pipeline-tracking-ce' into 'master'
Add bridge relation between Pipelines and Bridges CE backport
See merge request gitlab-org/gitlab-ce!28152
Diffstat (limited to 'app')
-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 |