Skip to content
Snippets Groups Projects
Unverified Commit 593b05ea authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Look for project description during search

parent 1a20976a
No related branches found
No related tags found
1 merge request!1Fix Links To Gitlab Cloud
Loading
Loading
@@ -122,7 +122,7 @@ class Project < ActiveRecord::Base
end
 
def search query
joins(:namespace).where("projects.name LIKE :query OR projects.path LIKE :query OR namespaces.name LIKE :query", query: "%#{query}%")
joins(:namespace).where("projects.name LIKE :query OR projects.path LIKE :query OR namespaces.name LIKE :query OR projects.description LIKE :query", query: "%#{query}%")
end
 
def find_with_namespace(id)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment