Commit 17e99aa5 authored by Matija Čupić's avatar Matija Čupić

Backport EE changes

Backports the EE changes from
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/11264
parent e1aa7f50
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment