Temporary fix for rails 4 and Spree 2.0.x