Updated dependencies to rails4