module CarrierWave::Uploader::Remove

Public Instance Methods

remove!() click to toggle source

Removes the file and reset it

# File lib/carrierwave/uploader/remove.rb, line 11
def remove!
  with_callbacks(:remove) do
    @file.delete if @file
    @file = nil
    @cache_id = nil
  end
end