diff --git a/app/models/shixun.rb b/app/models/shixun.rb index c1782fe03..a2c66db79 100644 --- a/app/models/shixun.rb +++ b/app/models/shixun.rb @@ -293,7 +293,7 @@ class Shixun < ApplicationRecord # 所属实践课程 def relation_path - subjects.where(hidden: 0).uniq + subjects.published.unhidden.uniq end private