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