Rails has not used the stdlib ERB implementation for a long time. As of 5.1 it uses erubi [0] and prior to that it used erubis. [1] So the performance improvements to the stdlib ERB implementation will not affect rails apps.
[0] https://github.com/rails/rails/pull/27757
[1] https://github.com/rails/rails/pull/16773