mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix jruby warning when capture calls unlink on an open tempfile
Jruby cannot unlink a tempfile unless it is closed first.
This commit is contained in:
parent
fd20f2e3c0
commit
ae50fd61c6
1 changed files with 1 additions and 0 deletions
|
@ -91,6 +91,7 @@ module Kernel
|
|||
stream_io.rewind
|
||||
return captured_stream.read
|
||||
ensure
|
||||
captured_stream.close
|
||||
captured_stream.unlink
|
||||
stream_io.reopen(origin_stream)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue