class ActiveSupport::Duration
def <=>(other)
Compares one Duration with another or a Numeric to this Duration.
def <=>(other) if Duration === other value <=> other.value elsif Numeric === other value <=> other end end
def <=>(other) if Duration === other value <=> other.value elsif Numeric === other value <=> other end end