rails/rails — pull request #4688 by hgwr (2012-01-26 09:36:20+00:00)
Title: fix issue temp_file is removed by GC

In rare cases, temp_file is removed by GC after temp_file.close.
So we should be disable GC when writing a file.