Update for Spree 1.0.x and 1.1.x compatibility.