Fix for Rails 4 and Spree 2.1 > compability