Sha256: 8554b6eff5dea1afd7a9966bdf56801ac19567573f30cc26ae9a072028c2c291

Contents?: true

Size: 337 Bytes

Versions: 13

Compression:

Stored size: 337 Bytes

Contents

#This patch is to make the attachment_fu plugin work on Windows
#It is not necessary for 'nix operating systems, though it is not known
#to cause problems
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

13 entries across 13 versions & 1 rubygems

Version Path
erp_tech_svcs-3.0.12 lib/erp_tech_svcs/utils/attachment_fu_patch.rb
erp_tech_svcs-3.0.11 lib/erp_tech_svcs/utils/attachment_fu_patch.rb
erp_tech_svcs-3.0.10 lib/erp_tech_svcs/utils/attachment_fu_patch.rb
erp_tech_svcs-3.0.9 lib/erp_tech_svcs/utils/attachment_fu_patch.rb
erp_tech_svcs-3.0.8 lib/erp_tech_svcs/utils/attachment_fu_patch.rb
erp_tech_svcs-3.0.7 lib/erp_tech_svcs/utils/attachment_fu_patch.rb
erp_tech_svcs-3.0.6 lib/erp_tech_svcs/utils/attachment_fu_patch.rb
erp_tech_svcs-3.0.5 lib/erp_tech_svcs/utils/attachment_fu_patch.rb
erp_tech_svcs-3.0.4 lib/erp_tech_svcs/utils/attachment_fu_patch.rb
erp_tech_svcs-3.0.3 lib/erp_tech_svcs/utils/attachment_fu_patch.rb
erp_tech_svcs-3.0.2 lib/erp_tech_svcs/utils/attachment_fu_patch.rb
erp_tech_svcs-3.0.1 lib/erp_tech_svcs/utils/attachment_fu_patch.rb
erp_tech_svcs-3.0.0 lib/erp_tech_svcs/utils/attachment_fu_patch.rb