Fix for Rails 3.0.20.