Method: FileColumn::TempUploadedFile#assign_temp
- Defined in:
- lib/file_column.rb
#assign_temp(temp_path) ⇒ Object
289 290 291 292 293 294 295 296 297 298 299 |
# File 'lib/file_column.rb', line 289 def assign_temp(temp_path) return self if temp_path.nil? or temp_path.empty? # we can ignore this since we've already received a newly uploaded file # however, we delete the old temporary files temp = clone_as TempUploadedFile temp.parse_temp_path(temp_path, :ignore_instance) temp.delete_files self end |