Module: CarrierWave::Uploader::Remove

Defined in:
lib/carrierwave/uploader/remove.rb

Instance Method Summary collapse

Instance Method Details

#remove!Object

Removes the file and reset it



12
13
14
15
16
17
18
# File 'lib/carrierwave/uploader/remove.rb', line 12

def remove!
  with_callbacks(:remove) do
    @file.delete if @file
    @file = nil
    @cache_id = nil
  end
end