to support spree_core 2.0.0.beta