Commutative rings whose proper ideals are direct sums of uniform modules