admin界面-班级列表:课程列表中不显示已经删除的班级,全部班级列表中显示已经删除的班级

This commit is contained in:
cxt 2016-09-07 15:26:15 +08:00
parent 0ae4d26ec0
commit 775ed19129
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@
<%= format_date(syllabus.created_at) %>
</td>
</tr>
<% courses = syllabus.courses %>
<% courses = syllabus.courses.not_deleted %>
<% courses.each do |course| %>
<tr class="even">
<td style="text-align: center;">