From 06e4bd4412908e718adcd1ecf9b85f1da058ef18 Mon Sep 17 00:00:00 2001 From: Henrik Bohre Date: Tue, 9 Jun 2009 00:13:56 +0200 Subject: [PATCH] #300: Displays show_from correctly --- app/models/todo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/todo.rb b/app/models/todo.rb index a143e9cf..f39f30a2 100644 --- a/app/models/todo.rb +++ b/app/models/todo.rb @@ -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 > Time.zone.now} + :guard => Proc.new{|t| t.show_from.blank? or Time.zone.now > t.show_from} transitions :to => :deferred, :from => [:pending] end