Adapt to change in Rails 3.2. #3826.

This is a breaking API change in a minor release without a deprecation
warning, which is annoying.