Fixing Heroku issue with rails 4