This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
moduleSubjectsHelper
# 实训路径的发布状态
defpublish_statussubject,is_manager,user,shixuns
status=-1
ifis_manager
status=0ifsubject.status==0&&shixuns.count>0
status=1ifsubject.status==1
status=2ifsubject.status==2&&user.admin?
end
status
end
# 实训路径的所有用户获得的标签
defuser_shixun_tagschallenge_ids,user_id
ChallengeTag.joins("join games on challenge_tags.challenge_id = games.challenge_id").