From 96650b951ab733bb5a1d9c9ed60863a9ae9fa1d5 Mon Sep 17 00:00:00 2001 From: yuanke <249218296@qq.com> Date: Wed, 28 Sep 2016 16:50:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=BA=90=E7=BC=93=E5=AD=98=E7=9B=B8?= =?UTF-8?q?=E5=85=B3BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/attachment.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/attachment.rb b/app/models/attachment.rb index 6e215e128..bb5a54dfc 100644 --- a/app/models/attachment.rb +++ b/app/models/attachment.rb @@ -686,7 +686,9 @@ class Attachment < ActiveRecord::Base #更新时间 def update_others if self.course - self.course.update_course + if self.course.is_a?(::Course) + self.course.update_course + end end end end