Sha256: 0f6804ab8906747a741b6012a3fccbc822c3f75e9b7e4e4afce653f7bf634c91
Contents?: true
Size: 342 Bytes
Versions: 52
Compression:
Stored size: 342 Bytes
Contents
# This patches the windows tempfile problem that attachment_fu depends on. See: # http://epirsch.blogspot.com/2008/01/fixing-attachmentfu-on-windows-like.html require 'tempfile' class Tempfile def size if @tmpfile @tmpfile.fsync # added this line @tmpfile.flush @tmpfile.stat.size else 0 end end end
Version data entries
52 entries across 52 versions & 2 rubygems