Upgrade Rails to 3.1.12

Fixes all these vulnerabilities:

- [CVE-2013-1854]
- [CVE-2013-1855]
- [CVE-2013-1856]
- [CVE-2013-1857]

Full changeset here: https://github.com/rails/rails/compare/v3.1.11...v3.1.12