Upgrade rails and json due to security vulnerabilities