Commit 9da107f0 authored by Tiago Botelho's avatar Tiago Botelho
Browse files

refactors Project#search namespace join

parent 87e4c7a2c169
......@@ -377,6 +377,7 @@ def search(query)
.or(ptable[:description].matches(pattern))
)
namespaces = unscoped.select(:id)
.joins(:namespace)
.where(ntable[:name].matches(pattern))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment