Update application to Rails 4