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