[Security]: Upgrading to Rails 3.1.10 on advice from Heroku

Apparently, a vulnerability was detected in the Rails framework that
was patched in this version