Wow that's too bad.
Do you know if the Rails team would approve a patch that was submitted?
Also, the change of the meaning of the right bar in your example above seems significant. Do you happen to know of any context for that change?
In case you weren't aware: https://github.com/rails/rails/pull/18160
A less easily fixed change is that the following syntax no longer works the same as it did in previous versions of Ruby:
The recommended fix is the following: (I believe) Rails uses this syntax occasionally. It's simple to change, but the Rails team refuses to merge in the fixes because it's not a security issue.