From b8d2d35e95e8e3c4c6e75f973239205dbd599015 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 13 Dec 2014 11:09:42 +0000 Subject: [PATCH] Use projects association. git-svn-id: http://svn.redmine.org/redmine/trunk@13744 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/search_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb index 0abac94d3..13a882a88 100644 --- a/app/controllers/search_controller.rb +++ b/app/controllers/search_controller.rb @@ -29,7 +29,7 @@ class SearchController < ApplicationController when 'all' nil when 'my_projects' - User.current.memberships.collect(&:project) + User.current.projects when 'subprojects' @project ? (@project.self_and_descendants.active.to_a) : nil else