Disable YAML parsing in JSON parsing code, security patch for CVE-2013-0333

I found this patch for Rails < 2.3
https://gist.github.com/rsierra/4663801/