Sha256: 9fbe858986ee07bf364d4f87d5e2308347865b33920eaf4e905978e9d41cb4a5

Contents?: true

Size: 615 Bytes

Versions: 106

Compression:

Stored size: 615 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, ext)
  end
end

require 'geometry'
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

106 entries across 106 versions & 9 rubygems

Version Path
refinerycms-0.9.6.14 vendor/plugins/attachment_fu/init.rb
refinerycms-0.9.6.13 vendor/plugins/attachment_fu/init.rb
refinerycms-0.9.6.12 vendor/plugins/attachment_fu/init.rb
refinerycms-0.9.6.11 vendor/plugins/attachment_fu/init.rb
refinerycms-0.9.6.10 vendor/plugins/attachment_fu/init.rb
refinerycms-0.9.6.9 vendor/plugins/attachment_fu/init.rb
refinerycms-0.9.6.8 vendor/plugins/attachment_fu/init.rb
refinerycms-0.9.6.7 vendor/plugins/attachment_fu/init.rb
refinerycms-0.9.6.6 vendor/plugins/attachment_fu/init.rb
refinerycms-0.9.6.5 vendor/plugins/attachment_fu/init.rb
refinerycms-0.9.6.4 vendor/plugins/attachment_fu/init.rb
refinerycms-0.9.6.3 vendor/plugins/attachment_fu/init.rb
refinerycms-0.9.6.2 vendor/plugins/attachment_fu/init.rb
refinerycms-0.9.6.1 vendor/plugins/attachment_fu/init.rb
refinerycms-0.9.6 vendor/plugins/attachment_fu/init.rb
refinerycms-0.9.5.31 vendor/plugins/attachment_fu/init.rb
refinerycms-0.9.5.30 vendor/plugins/attachment_fu/init.rb
refinerycms-0.9.5.29 vendor/plugins/attachment_fu/init.rb
refinerycms-0.9.5.28 vendor/plugins/attachment_fu/init.rb
refinerycms-0.9.5.27 vendor/plugins/attachment_fu/init.rb