Show that if $R$ is a Dedekind domain, then every projective $R$-module (not necessarily finitely generated) is a direct sum of ideals of $R$.
I have spent a while on this problem and I wonder if it is true that every nonzero (integral) ideal of $R$ is projective as an $R$ module. If so, can we use this fact to prove the result above?