lib/vfs/entries/universal_entry.rb in vfs-0.3.13 vs lib/vfs/entries/universal_entry.rb in vfs-0.3.14
- old
+ new
@@ -10,15 +10,16 @@
#
# CRUD
#
- def destroy
+ def destroy options = {}
storage.open_fs do |fs|
attrs = get
fs.delete_dir path if attrs[:dir]
fs.delete_file path if attrs[:file]
end
self
end
+ alias_method :destroy!, :destroy
end
end
\ No newline at end of file