Revert "First part of a fix for #208."

This reverts commit 145b6d499db8038de0ff2574802f2b399e661b47.

This fix introduced an incompatibility with Rails 3.0.

We'll have to fix it in a different way for older Rails.