@@ -183,7 +183,12 @@ class Project < ActiveRecord::Base
end
defsearch(query)
joins(:namespace).where("projects.archived = ?",false).where("LOWER(projects.name) LIKE :query OR LOWER(projects.path) LIKE :query OR LOWER(namespaces.name) LIKE :query OR LOWER(projects.description) LIKE :query",query: "%#{query.downcase}%")