mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-28 21:08:48 +01:00
#300: Changed user.date to Time.zone.now
This commit is contained in:
parent
4016c89cdf
commit
3d3b703dfd
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 > user.date}
|
||||
:guard => Proc.new{|t| t.show_from.blank? or t.show_from > Time.zone.now}
|
||||
transitions :to => :deferred, :from => [:pending]
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue