Fixes site for rails 4 on heroku.