Revert "Apply patch for critical rails security issue."

This reverts commit d99d1411b866769ebc95b6ad4260ee402f115aa2.