class ActiveSupport::Duration
def +(other)
Adds another Duration or a Numeric to this Duration. Numeric values
def +(other) if Duration === other Duration.new(value + other.value, @parts + other.parts) else Duration.new(value + other, @parts + [[:seconds, other]]) end end