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
defsearch_by_title(query)
where("projects.archived = ?",false).where("LOWER(projects.name) LIKE :query",query: "%#{query.downcase}%")
where("projects.archived = ?",false).where("LOWER(projects.name) LIKE :query",query: "%#{query.downcase}%")