public
Fork of technoweenie/attachment_fu
Description: Treat an ActiveRecord model as a file attachment, storing its patch, size, content type, etc.
Homepage: http://weblog.techno-weenie.net
Clone URL: git://github.com/francois/attachment_fu.git
dont break tempfile with my crazy monkey patches

git-svn-id: 
http://svn.techno-weenie.net/projects/plugins/attachment_fu@2655 
567b1171-46fb-0310-a4c9-b4bef9110e78
technoweenie (author)
Thu Jan 11 10:46:06 -0800 2007
commit  4b76298835008a22702e544b7db19df343601e66
tree    ebbb2743dc8230f076aac7be0b00f9e12c5c0d30
parent  e279f106b4a05cc89e8d246fc72875f6a651b1c5
...
4
5
6
7
 
8
9
10
...
4
5
6
 
7
8
9
10
0
@@ -4,7 +4,7 @@ Tempfile.class_eval do
0
   # overwrite so tempfiles use the extension of the basename. important for rmagick and image science
0
   def make_tmpname(basename, n)
0
     ext = nil
0
- sprintf("%s%d-%d%s", basename.gsub(/\.\w+$/) { |s| ext = s; '' }, $$, n, ext)
0
+ sprintf("%s%d-%d%s", basename.to_s.gsub(/\.\w+$/) { |s| ext = s; '' }, $$, n, ext)
0
   end
0
 end
0
 

Comments

    No one has commented yet.