init.rb in artmotion-attachment_fu-0.0.1 vs init.rb in artmotion-attachment_fu-0.0.2
- old
+ new
@@ -7,9 +7,10 @@
sprintf("%s%d-%d%s", basename.to_s.gsub(/\.\w+$/) { |s| ext = s; '' }, $$, n, 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')