#300: Changed user.date to Time.zone.now

This commit is contained in:
Henrik Bohre 2009-06-09 00:06:30 +02:00 committed by Eric Allen
parent 4016c89cdf
commit 3d3b703dfd

View file

@ -42,7 +42,7 @@ class Todo < ActiveRecord::Base
event :activate do
transitions :to => :active, :from => [:project_hidden, :completed, :deferred]
transitions :to => :active, :from => [:pending],
:guard => Proc.new{|t| t.show_from.blank? or t.show_from > user.date}
:guard => Proc.new{|t| t.show_from.blank? or t.show_from > Time.zone.now}
transitions :to => :deferred, :from => [:pending]
end