Skip a count query.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5457 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2011-04-14 16:29:51 +00:00
parent 04a22fa757
commit 910d85be47
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ module ApplicationHelper
h(Setting.app_title)
else
b = []
ancestors = (@project.root? ? [] : @project.ancestors.visible)
ancestors = (@project.root? ? [] : @project.ancestors.visible.all)
if ancestors.any?
root = ancestors.shift
b << link_to_project(root, {:jump => current_menu_item}, :class => 'root')