]> source.dussan.org Git - redmine.git/commitdiff
Preload boards projects.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 12 Jun 2013 19:34:23 +0000 (19:34 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 12 Jun 2013 19:34:23 +0000 (19:34 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11964 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/boards_controller.rb

index 47f5c0f07eb6b3b9133ded5197afa2c8d5f2fc11..9ff095e074c06081070b7404a4c4e2c5da1e97bb 100644 (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