Contributed to open source
https://github.com/rails/rails/pull/26764