]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/tempfile.rb
Work round ruby's half assed Tempfile class which, because for some
[rails.git] / config / initializers / tempfile.rb
diff --git a/config/initializers/tempfile.rb b/config/initializers/tempfile.rb
new file mode 100644 (file)
index 0000000..11416b0
--- /dev/null
@@ -0,0 +1,7 @@
+# Hack TempFile to let us get at the underlying File object as ruby
+# does a half assed job of making TempFile act as a File
+class Tempfile
+  def file
+    return @tmpfile
+  end
+end