Rails 4.2.0.beta2 compatibility