Backport EE changes

Backports the EE changes from
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/11264
This commit is contained in:
Matija Čupić 2019-05-06 17:33:01 -04:00
parent e1aa7f5074
commit 17e99aa5c7
No known key found for this signature in database
GPG Key ID: 4BAF84FFACD2E5DE
1 changed files with 4 additions and 0 deletions

View File

@ -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