@@ -138,6 +138,10 @@ class Project < ActiveRecord::Base
...
@@ -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}%")
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
end
defsearch_by_titlequery
where("projects.archived = ?",false).where("projects.name LIKE :query",query: "%#{query}%")