Updating dependencies for rails 4