app/models/content_blob.rb
# allows you to run something on a temporary copy of the blob file, which is deleted once finished
# e.g. blob.with_temporary_copy{|copy_path| <some stuff with the copy>}
allows you to run something on a temporary copy of the blob file, which is deleted once finished
e.g.
allows you to run something on a temporary copy of the blob file which is deleted once finished e . g .
def with_temporary_copy
    copy_path = make_temp_copy
    begin
      yield copy_path
    ensure
      FileUtils.rm(copy_path)
    end
  end
def with_temporary_copy copy_path = make_temp_copy begin yield copy_path ensure FileUtils . rm ( copy_path ) end end
allows you to run something on a temporary copy of the blob file, which is deleted once finished
e.g.
allows you to run something on a temporary copy of the blob file which is deleted once finished e . g .