Ported to work with Spree 1.3.1

Hello. I made a simple change in model to get running in Spree 1.3.1. Thanks...