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
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue