Force Rails 3.1.10 for security fix.

Fixes #2404