Add support for rails 4 and spree 2.2