Commit f6dd4976 authored by Brett Walker's avatar Brett Walker

Use children.any? since ObjectHierarchy is not

supported on MySQL
parent f7601fd4
......@@ -280,7 +280,7 @@ module EE
end
def has_children?
descendants.any?
children.any?
end
def has_issues?
......
......@@ -732,7 +732,7 @@ describe Epic do
it 'has child epics' do
create(:epic, group: group, parent: epic)
expect(epic.has_children?).to be_truthy
expect(epic.reload.has_children?).to be_truthy
end
end
......
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