lib/sequel/extensions/date_arithmetic.rb in sequel-5.42.0 vs lib/sequel/extensions/date_arithmetic.rb in sequel-5.43.0
- old
+ new
@@ -52,10 +52,9 @@
if defined?(ActiveSupport::Duration) && interval.is_a?(ActiveSupport::Duration)
interval = interval.parts
end
parts = {}
interval.each{|k,v| parts[k] = -v unless v.nil?}
- parts
DateAdd.new(expr, parts, opts)
end
end
# The DateAdd class represents the addition of an interval to a