Allow use with Rails 4.x.