Upgraded gem to be compatible with rails 3.2 and spree 1.3.