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

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