changed the condition to increase readability

This commit is contained in:
sf 2011-10-10 05:36:56 -04:00
parent 3d3646a137
commit 90f9e41671

View file

@ -108,9 +108,8 @@ 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))
return active? && ( last_reviewed.nil? ||
(last_reviewed < current_user.time - current_user.prefs.review_period.days))
end
def blocked?