##// END OF EJS Templates
Fixed: TypeError in WikiController#destroy_attachment (#1281)....
Jean-Philippe Lang -
r1430:e02e047dd4a8
parent child
Show More
@@ -68,9 +68,7 class Attachment < ActiveRecord::Base
68 68
69 69 # Deletes file on the disk
70 70 def after_destroy
71 if self.filename?
72 File.delete(diskfile) if File.exist?(diskfile)
73 end
71 File.delete(diskfile) if !filename.blank? && File.exist?(diskfile)
74 72 end
75 73
76 74 # Returns file's location on disk
General Comments 0
You need to be logged in to leave comments. Login now