add support to rails 4.2.0.beta1