Updating rails dependecies to support rails4