Method: Paperclip::Attachment#destroy

Defined in:
lib/paperclip/attachment.rb

#destroyObject

Destroys the attachment. Has the same effect as previously assigning nil to the attachment *and saving*. This is permanent. If you wish to wipe out the existing attachment but not save, use #clear.



164
165
166
167
# File 'lib/paperclip/attachment.rb', line 164

def destroy
  clear
  save
end