diff options
author | skv <skv-headless@yandex.ru> | 2014-01-19 22:55:59 +0400 |
---|---|---|
committer | skv <skv-headless@yandex.ru> | 2014-01-19 23:39:56 +0400 |
commit | a3f645ef51ec12ce93934b4ddb11313613d8c451 (patch) | |
tree | f30e76940e436049aa83a8c60741bc6c2d9b7f44 /app/services/search | |
parent | 3fe578a7fdaea8607cf98ffb1878c03fd5ac3649 (diff) | |
download | gitlab-ce-a3f645ef51ec12ce93934b4ddb11313613d8c451.tar.gz |
Remove deprecated finders
Diffstat (limited to 'app/services/search')
-rw-r--r-- | app/services/search/global_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/search/global_service.rb b/app/services/search/global_service.rb index c5ca3322362..c1130401578 100644 --- a/app/services/search/global_service.rb +++ b/app/services/search/global_service.rb @@ -15,7 +15,7 @@ module Search authorized_projects_ids += current_user.authorized_projects.pluck(:id) if current_user authorized_projects_ids += Project.public_or_internal_only(current_user).pluck(:id) - group = Group.find_by_id(params[:group_id]) if params[:group_id].present? + group = Group.find_by(id: params[:group_id]) if params[:group_id].present? projects = Project.where(id: authorized_projects_ids) projects = projects.where(namespace_id: group.id) if group projects = projects.search(query) |