https://github.com/rails/rails/pull/27962#issuecomment-298498196
rails/rails#27962 (comment)