4 # overwrite so tempfiles use the extension of the basename. important for rmagick and image science
5 def make_tmpname(basename, n)
7 sprintf("%s%d-%d%s", basename.to_s.gsub(/\.\w+$/) { |s| ext = s; '' }, $$, n, ext)
12 ActiveRecord::Base.send(:extend, Technoweenie::AttachmentFu::ActMethods)
13 Technoweenie::AttachmentFu.tempfile_path = ATTACHMENT_FU_TEMPFILE_PATH if Object.const_defined?(:ATTACHMENT_FU_TEMPFILE_PATH)
14 FileUtils.mkdir_p Technoweenie::AttachmentFu.tempfile_path