From bff1319c5efd13c89e637b2bf02df53eb3ed9a00 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Tue, 15 Jul 2014 09:53:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E8=AF=BE=E7=A8=8B=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=85=BC=E5=AE=B9=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/course.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/course.rb b/app/models/course.rb index 248f80e0b..4f090d7ed 100644 --- a/app/models/course.rb +++ b/app/models/course.rb @@ -300,7 +300,7 @@ class Course < ActiveRecord::Base end #项目与课程分离后,很多课程的名称等信息为空,这些数据信息存储在项目表中!!就是数据兼容的问题 - def name - read_attribute('name') || Project.find_by_identifier(self.extra).try(:name) - end + #def name + # read_attribute('name') || Project.find_by_identifier(self.extra).try(:name) + #end end