This commit is contained in:
z9hang 2014-06-26 17:55:21 +08:00
commit d57688413e
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ class AttachmentsController < ApplicationController
end end
if @attachment.container if @attachment.container
# Make sure association callbacks are called # Make sure association callbacks are called
@attachment.container.def attachments.delete(@attachment) @attachment.container.attachments.delete(@attachment)
else else
@attachment.destroy @attachment.destroy
end end