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:
Reinier Balt 2013-05-04 13:44:45 +02:00
parent 5cfa115cdc
commit 89cdfbc606

View file

@ -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