diff --git a/app/controllers/boards_controller.rb b/app/controllers/boards_controller.rb index 47f5c0f07..9ff095e07 100644 --- a/app/controllers/boards_controller.rb +++ b/app/controllers/boards_controller.rb @@ -25,7 +25,7 @@ class BoardsController < ApplicationController helper :watchers def index - @boards = @project.boards.includes(:last_message => :author).all + @boards = @project.boards.includes(:project, :last_message => :author).all # show the board if there is only one if @boards.size == 1 @board = @boards.first