Permalink
Browse files

Remove Tempfile name hack

ImageMagick does not rely on extensions so there's no need to hack Ruby's
crappy tempfile lib
  • Loading branch information...
1 parent f8e2681 commit c38c38935a7c5e0f5cecd64a73539313f42b4eff akdubya committed Nov 30, 2010
Showing with 0 additions and 8 deletions.
  1. +0 −8 lib/rack/thumb.rb
View
@@ -1,16 +1,8 @@
require 'rack'
require 'mapel'
require 'digest/sha1'
-
require 'tempfile'
-Tempfile.class_eval do
- def make_tmpname(basename, n)
- ext = nil
- sprintf("%s%d-%d%s", basename.to_s.gsub(/\.\w+$/) { |s| ext = s; '' }, $$ || 0, n || 0, ext)
- end
-end
-
module Rack
# The Rack::Thumb middleware intercepts requests for images that have urls of

0 comments on commit c38c389

Please sign in to comment.