Sha256: 8f64d1f2185d4fc4236fe7a01da7eb8b00111ca68c49a1da160c7e5e434ad59a

Contents?: true

Size: 683 Bytes

Versions: 1

Compression:

Stored size: 683 Bytes

Contents

#require 'tempfile'
#
#Tempfile.class_eval do
#  # overwrite so tempfiles use the extension of the basename.  important for rmagick and image science
#  def make_tmpname(basename, n)
#    ext = nil
#    sprintf("%s%d-%d%s", basename.to_s.gsub(/\.\w+$/) { |s| ext = s; '' }, $$, (n || Time.now.tv_usec), ext)
#  end
#end

require 'geometry'
require 'technoweenie/attachment_fu'
ActiveRecord::Base.send(:extend, Technoweenie::AttachmentFu::ActMethods)
Technoweenie::AttachmentFu.tempfile_path = ATTACHMENT_FU_TEMPFILE_PATH if Object.const_defined?(:ATTACHMENT_FU_TEMPFILE_PATH)
FileUtils.mkdir_p Technoweenie::AttachmentFu.tempfile_path

$:.unshift(File.dirname(__FILE__) + '/vendor')

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ncri_attachment_fu-0.1.8 lib/attachment_fu.rb