@@ -138,6 +138,10 @@ class Project < ActiveRecord::Base
joins(:namespace).where("projects.archived = ?",false).where("projects.name LIKE :query OR projects.path LIKE :query OR namespaces.name LIKE :query OR projects.description LIKE :query",query: "%#{query}%")
end
defsearch_by_titlequery
where("projects.archived = ?",false).where("projects.name LIKE :query",query: "%#{query}%")