Replace User#time with UserTime#time

This commit is contained in:
Matt Rogers 2013-07-30 16:18:06 -05:00
parent 8512e8db3b
commit 96777c2e3a
13 changed files with 44 additions and 27 deletions

View file

@ -11,4 +11,12 @@ class UserTime
def midnight(date)
timezone.local(date.year, date.month, date.day, 0, 0, 0)
end
def time
timezone.now
end
def date
time.to_date
end
end