completed reviews no longer show up that they need a review

This commit is contained in:
sf 2011-10-08 00:23:31 -04:00
parent 5f5a2045b5
commit 3d3646a137

View file

@ -108,6 +108,7 @@ class Project < ActiveRecord::Base
end
def needs_review?(current_user)
return false if self.completed?
return true if last_reviewed.nil?
return (active? && (last_reviewed < current_user.time - current_user.prefs.review_period.days))
end