mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 03:00:12 +01:00
fix failing tests on ruby 1.9.3
funny, this is the first one not failing on 2.0.0 but failing on 1.9.3. Thanks for Travis!
This commit is contained in:
parent
5cfa115cdc
commit
89cdfbc606
1 changed files with 1 additions and 1 deletions
|
|
@ -264,7 +264,7 @@ class Todo < ActiveRecord::Base
|
|||
# (see http://stackoverflow.com/questions/682920/persisting-the-state-column-on-transition-using-rubyist-aasm-acts-as-state-machi)
|
||||
self[:show_from] = date
|
||||
|
||||
defer if active? && !date.blank? && date > user.date
|
||||
defer if active? && !date.blank? && show_from > user.date
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue