From 38baa247bfd409e73fca9b12eb9a44c98305b34c Mon Sep 17 00:00:00 2001 From: nwb Date: Thu, 26 Jun 2014 17:47:27 +0800 Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/attachments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index d52f72d3c..5dbb4f2bb 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -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