update for spree 2.4, rails 4.1