Fix generators for spree 2.3.0