support Rails 4.2.0