去除课程数据兼容代码
This commit is contained in:
parent
61ba2c47ee
commit
bff1319c5e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue