Judge rules against Allen County in ditch lawsuit