exclude completed projects from blocked list

This commit is contained in:
sfischme 2011-09-17 13:15:30 -04:00
parent 7873d2cff8
commit 6f8d9ec2ae

View file

@ -116,6 +116,7 @@ class Project < ActiveRecord::Base
def blocked?
## mutually exclusive for stalled and blocked
return false if stalled?
return false if completed?
is_blocked = true
todos.each do |t|
is_blocked = false if (!t.completed? && !t.deferred? && !t.pending?)