Revision
4504
Author
joshua.ballanco@apple.com
Date
2010-09-10 14:17:10 -0700 (Fri, 10 Sep 2010)

Log Message

Fix tempfile unlink code

Modified Paths

Diff

Modified: ControlTower/trunk/lib/control_tower/rack_socket.rb (4503 => 4504)


--- ControlTower/trunk/lib/control_tower/rack_socket.rb	2010-09-10 07:55:31 UTC (rev 4503)
+++ ControlTower/trunk/lib/control_tower/rack_socket.rb	2010-09-10 21:17:10 UTC (rev 4504)
@@ -110,7 +110,7 @@
           ensure
             # We should clean up after our tempfile, if we used one.
             input = env['rack.input']
-            unlink input if input.class == Tempfile
+            input.unlink if input.class == Tempfile
             connection.close rescue nil
           end
         end