Probably https://github.com/rails/rails/pull/36729/commits should be implemented - has to be investigated.