fix show_from not being clear when a todo comes from tickler

This commit is contained in:
Reinier Balt 2013-09-05 12:21:43 +02:00
parent 6e654c5d03
commit cb46a8461e
3 changed files with 47 additions and 12 deletions

View file

@ -73,7 +73,7 @@ class Todo < ActiveRecord::Base
state :active
state :project_hidden
state :completed, :before_enter => Proc.new { |t| t.completed_at = Time.zone.now }, :before_exit => Proc.new { |t| t.completed_at = nil}
state :deferred, :after_exit => Proc.new { |t| t[:show_from] = nil }
state :deferred, :before_exit => Proc.new { |t| t[:show_from] = nil }
state :pending
event :defer do