diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-13 11:09:42 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-13 11:09:42 +0000 |
commit | b8d2d35e95e8e3c4c6e75f973239205dbd599015 (patch) | |
tree | 8ffe868e7e31c227fb1dccd5d64f8a8c0c0b6cf9 /app | |
parent | ed1f13c97fdcae86943ed2eb23339261962d0a1a (diff) | |
download | redmine-b8d2d35e95e8e3c4c6e75f973239205dbd599015.tar.gz redmine-b8d2d35e95e8e3c4c6e75f973239205dbd599015.zip |
Use projects association.
git-svn-id: http://svn.redmine.org/redmine/trunk@13744 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/search_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |