summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2019-05-06 17:33:01 -0400
committerMatija Čupić <matteeyah@gmail.com>2019-05-06 17:33:01 -0400
commit17e99aa5c7bc42be0ab961fb20987e238694ce88 (patch)
tree7b354fd6e6cd7203aecc48ad7b930fd2b1e29806
parente1aa7f5074aab8190d16a6f25121d33b99a07238 (diff)
downloadgitlab-ce-17e99aa5c7bc42be0ab961fb20987e238694ce88.tar.gz
Backports the EE changes from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/11264
-rw-r--r--app/models/concerns/has_status.rb4
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