Milestone is closed only if all milestones are closed.

This commit is contained in:
Marin Jankovski 2014-07-14 15:25:09 +02:00
parent d9bc57d18e
commit 275a5281d5

View file

@ -50,10 +50,10 @@ class GroupMilestone
def state
state = milestones.map { |milestone| milestone.state }
if state.count('active') == state.size
'active'
else
if state.count('closed') == state.size
'closed'
else
'active'
end
end