class ActiveSupport::Duration::Scalar

def %(other)

def %(other)
  if Duration === other
    Duration.build(value % other.value)
  else
    calculate(:%, other)
  end
end