class ActiveSupport::Duration

def coerce(other) # :nodoc:

:nodoc:
def coerce(other) # :nodoc:
  case other
  when Scalar
    [other, self]
  when Duration
    [Scalar.new(other.value), self]
  else
    [Scalar.new(other), self]
  end
end