patching a bug in Rails 3.0.X that will never be fixed
see: https://github.com/rails/rails/issues/9619