mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-09 22:22:37 +01:00
Purge UserTime from app/*
This commit is contained in:
parent
7a3f90a020
commit
622291d98d
7 changed files with 10 additions and 12 deletions
|
|
@ -101,9 +101,8 @@ class Project < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def needs_review?(user)
|
||||
current_time = UserTime.new(user).time
|
||||
return active? && ( last_reviewed.nil? ||
|
||||
(last_reviewed < current_time - user.prefs.review_period.days))
|
||||
(last_reviewed < Time.current - user.prefs.review_period.days))
|
||||
end
|
||||
|
||||
def blocked?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue