lib/reactor/event.rb in reactor-0.9.1 vs lib/reactor/event.rb in reactor-0.9.2
- old
+ new
@@ -71,10 +71,10 @@
job.score.to_i == data[:was].to_i
end
job.delete if job
- publish(name, data.except([:was, :if])) if data[:at].future?
+ publish(name, data.except([:was, :if])) if data[:at].try(:future?)
end
end
private