mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 03:00:12 +01:00
changed the condition to increase readability
This commit is contained in:
parent
3d3646a137
commit
90f9e41671
1 changed files with 2 additions and 3 deletions
|
|
@ -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?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue