Fixes app for Rails 4 on Heroku.