Heroku and Rails 4 fix