Class: Tempfile
- Inherits:
-
Object
- Object
- Tempfile
- Defined in:
- lib/erp_tech_svcs/utils/attachment_fu_patch.rb
Instance Method Summary collapse
Instance Method Details
#size ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/erp_tech_svcs/utils/attachment_fu_patch.rb', line 6 def size if @tmpfile @tmpfile.fsync # added this line @tmpfile.flush @tmpfile.stat.size else 0 end end |