Purge UserTime from app/*

This commit is contained in:
Dan Rice 2014-06-12 21:24:31 -04:00
parent 7a3f90a020
commit 622291d98d
7 changed files with 10 additions and 12 deletions

View file

@ -90,7 +90,7 @@ class User < ActiveRecord::Base
order('show_from ASC, todos.created_at DESC')},
:class_name => 'Todo') do
def find_and_activate_ready
where('show_from <= ?', Time.zone.now).collect { |t| t.activate! }
where('show_from <= ?', Time.current).collect { |t| t.activate! }
end
end
@ -160,7 +160,7 @@ class User < ActiveRecord::Base
end
def date
UserTime.new(self).midnight(Time.now)
Date.current
end
def generate_token