Added gems for compatibility between Rails 4 and heroku