lib/carrierwave/storage/abstract.rb in carrierwave-0.2.1 vs lib/carrierwave/storage/abstract.rb in carrierwave-0.2.3

- old
+ new

@@ -16,10 +16,25 @@ # The objects returned by store! and retrieve! both *must* respond to +identifier+, taking # no arguments. Identifier is a string that uniquely identifies this file and can be used # to retrieve it later. # class Abstract + + # Do something to destroy the file + # + # === Parameters + # + # [uploader (CarrierWave::Uploader)] an uploader object + # [identifier (String)] uniquely identifies the file + # + # === Returns + # + # [bool] True if file was remove or false + # + def self.destroy!(uploader, identifier) + false + end ## # Do setup specific for this storage engine # def self.setup!; end @@ -90,6 +105,6 @@ # def path; end end # Abstract end # Storage -end # CarrierWave \ No newline at end of file +end # CarrierWave