added rails4 fix for heroku