Method: Paperclip::Attachment#clear

Defined in:
lib/paperclip/attachment.rb

#clearObject

Clears out the attachment. Has the same effect as previously assigning nil to the attachment. Does NOT save. If you wish to clear AND save, use #destroy.



156
157
158
159
# File 'lib/paperclip/attachment.rb', line 156

def clear
  queue_existing_for_delete
  @errors            = {}
end