kjdelys PRO said 4 months ago :
yeah.


require 'fileutils'

unless Rails.env.development?
  # force the whole app to use its own tmpdir
  FileUtils.mkdir_p(Rails.root.join('tmp'))
  ENV['TMPDIR'] = Rails.root.join('tmp').to_s
end


in initializer fix everything