mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-05 15:31:47 +01:00
first steps towards review view
This commit is contained in:
parent
01bcc7a48c
commit
5f0bcebca9
5 changed files with 17 additions and 2 deletions
|
|
@ -107,6 +107,11 @@ class Project < ActiveRecord::Base
|
|||
end
|
||||
end
|
||||
|
||||
def needs_review?(current_user)
|
||||
return (last_reviewed < current_user.time ) # - current_user.prefs.review_period.days)
|
||||
end
|
||||
|
||||
|
||||
def name=(value)
|
||||
self[:name] = value.gsub(/\s{2,}/, " ").strip
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue