Potential fix for Rails 4.0.0 and Spree 2.1.1