Merge branch 'szzh' of http://repository.trustie.net/xianbo/trustie2 into szzh
This commit is contained in:
commit
d57688413e
|
@ -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