diff options
author | Alex Tambellini <atambellini@gmail.com> | 2013-08-02 18:02:38 -0400 |
---|---|---|
committer | Alex Tambellini <atambellini@gmail.com> | 2013-08-02 18:02:38 -0400 |
commit | ae50fd61c61b373dff0e58b826036c89441df059 (patch) | |
tree | da32a934dc206dd5512f94f5c6e3b15688786f5c /activesupport | |
parent | fd20f2e3c056cbac64690b2c0a33dac90c3aed3f (diff) | |
download | rails-ae50fd61c61b373dff0e58b826036c89441df059.tar.gz rails-ae50fd61c61b373dff0e58b826036c89441df059.tar.bz2 rails-ae50fd61c61b373dff0e58b826036c89441df059.zip |
Fix jruby warning when capture calls unlink on an open tempfile
Jruby cannot unlink a tempfile unless it is closed first.
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/kernel/reporting.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/kernel/reporting.rb b/activesupport/lib/active_support/core_ext/kernel/reporting.rb index 79d3303b41..36ab836457 100644 --- a/activesupport/lib/active_support/core_ext/kernel/reporting.rb +++ b/activesupport/lib/active_support/core_ext/kernel/reporting.rb @@ -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 |