Preload boards projects.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11964 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2013-06-12 19:34:23 +00:00
parent f9ddb562d5
commit cd716e311a
1 changed files with 1 additions and 1 deletions

View File

@ -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