fix for spree2 and rails4