Upgrade to rails 3.2.12

Following the security advisory about rails and json, upgrade both.