实训项目的所属课程去掉未发布的

dev_home
cxt 5 years ago
parent 1b92387d2d
commit 0969d323c5

@ -293,7 +293,7 @@ class Shixun < ApplicationRecord
# 所属实践课程
def relation_path
subjects.where(hidden: 0).uniq
subjects.published.unhidden.uniq
end
private

Loading…
Cancel
Save