aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tempfile.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tempfile.rb')
-rw-r--r--lib/tempfile.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tempfile.rb b/lib/tempfile.rb
index efb0b1bcd6..4148d30a86 100644
--- a/lib/tempfile.rb
+++ b/lib/tempfile.rb
@@ -290,7 +290,7 @@ class Tempfile < DelegateClass(File)
begin
yield(tempfile)
ensure
- tempfile.close
+ tempfile.close!
end
else
tempfile