X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/58082d128a9eef5037c5b46e17ff59715a9bd6e8..c0d2ad40c30e5a0837b6012d7b9067d69ce41dd0:/config/initializers/tempfile.rb diff --git a/config/initializers/tempfile.rb b/config/initializers/tempfile.rb new file mode 100644 index 000000000..11416b086 --- /dev/null +++ b/config/initializers/tempfile.rb @@ -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