修改课程讨论区报错
This commit is contained in:
parent
f67bdae22a
commit
54ef7e3325
|
@ -51,7 +51,7 @@ class BoardsController < ApplicationController
|
|||
@boards = @course.boards.includes(:last_message => :author).all
|
||||
end
|
||||
end
|
||||
if @boards.size == 1
|
||||
unless @course.boards.empty?
|
||||
@board = @course.boards.first
|
||||
end
|
||||
show and return
|
||||
|
|
Loading…
Reference in New Issue