lib/timespan/compare.rb in timespan-0.5.6.1 vs lib/timespan/compare.rb in timespan-0.5.7
- old
+ new
@@ -54,9 +54,11 @@
seconds <=> time.to_i
when Date, DateTime
time.to_time.to_i
when Integer
seconds <=> time
+ when Timelord::Time
+ seconds <=> time.moment
when ActiveSupport::Duration
seconds <=> time.to_i
end
end
\ No newline at end of file