diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-06-12 13:40:02 +0100 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-06-28 11:28:18 +0100 |
commit | 9da107f00bd17a525064f415ec0dcfd92b4907a0 (patch) | |
tree | a6a0bad291fe43adc1afc5e147d7292174cf77a0 /app/models/project.rb | |
parent | d20079f439a5b7180cfae8726c409fae436d1ae7 (diff) | |
download | gitlab-ce-9da107f00bd17a525064f415ec0dcfd92b4907a0.tar.gz |
refactors Project#search namespace join
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 1176bec8873..298ba512a3b 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -377,6 +377,7 @@ class Project < ActiveRecord::Base .or(ptable[:description].matches(pattern)) ) + namespaces = unscoped.select(:id) .joins(:namespace) .where(ntable[:name].matches(pattern)) |