Updated dependencies for rails 4