去除课程数据兼容代码

This commit is contained in:
sw 2014-07-15 09:53:03 +08:00
parent 61ba2c47ee
commit bff1319c5e
1 changed files with 3 additions and 3 deletions

View File

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