BUG修正

This commit is contained in:
nwb 2014-06-26 17:47:27 +08:00
parent a115edea9d
commit 38baa247bf
1 changed files with 1 additions and 1 deletions

View File

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