Backport EE changes
Backports the EE changes from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/11264
This commit is contained in:
parent
e1aa7f5074
commit
17e99aa5c7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue