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