BUG修正
This commit is contained in:
parent
a115edea9d
commit
38baa247bf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue