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
|
||||
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