Make changes necessary for Rails 4