Revert "Update Rails for latest security vunerability fixes"

This reverts commit 1c5613cdfa6eedb3e65f9ff2fcc79ef0318b5e49.
Apply security fixes as a monkey^M^M^M^M^M^Mfreedom patch