Yeah, I was like this on 3-2-stable and I've copied without thinking. This would be better I think: https://github.com/rails/rails/pull/12122