https://github.com/rails/rails/issues/8020#issuecomment-19958061