Permalink
Browse files

Merge pull request #11725 from atambo/jruby_capture_unlink

Fix jruby warning when capture calls unlink on an open tempfile
  • Loading branch information...
guilleiguaran committed Aug 2, 2013
2 parents fd20f2e + ae50fd6 commit bf520b1dfb32c53a08802f2d32364441f0c4cf4e
Showing with 1 addition and 0 deletions.
  1. +1 −0 activesupport/lib/active_support/core_ext/kernel/reporting.rb
@@ -91,6 +91,7 @@ def capture(stream)
stream_io.rewind
return captured_stream.read
ensure
+ captured_stream.close
captured_stream.unlink
stream_io.reopen(origin_stream)
end

0 comments on commit bf520b1

Please sign in to comment.