Revert "Apply updated advisory patch for Rails 2.x"

This reverts commit a8f9086dc0436a94ef450a56f29f57ba9e0c8a46 which was broken and did not apply properly.