mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 03:00:12 +01:00
#300: Displays show_from correctly
This commit is contained in:
parent
3d3b703dfd
commit
06e4bd4412
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue