Files
gitlabhq/app/models
Yorick Peterse 24920bc52a Add Project.where_paths_in
This method can be used to find multiple projects for multiple paths.
For example, take this snippet:

    Project.where_paths_in(%w{gitlab-org/gitlab-ce gitlab-org/gitlab-ee})

This will return an ActiveRecord::Relation containing the GitLab CE and
GitLab EE projects.

This method takes care of matching rows both case-sensitively and
case-insensitively where needed.

Project.find_with_namespace in turn has been modified to use
Project.where_paths_in without nuking any scoping (instead it uses
reorder(nil)). This means that any default scopes (e.g. those used for
"pending_delete" stay intact).

The method Project.where_paths_in was added so the various Markdown
filters can use a single query to grab all the projects referenced in a
set of documents, something Project.find_with_namespace didn't allow.
2016-06-10 15:33:05 +02:00
..
2016-05-30 22:32:07 +07:00
2011-10-09 00:36:38 +03:00
2016-05-18 08:47:15 -05:00
2016-04-28 21:28:39 +02:00
2016-03-06 23:07:19 -05:00
2016-03-29 12:19:09 +01:00
2015-12-18 14:19:48 -06:00
2016-05-31 19:33:46 -03:00
2016-06-01 12:10:08 +02:00
2016-05-18 23:45:25 -05:00
2016-06-06 11:03:39 +02:00
2016-06-01 16:22:35 +02:00
2016-05-31 11:24:58 -03:00
2016-06-10 15:33:05 +02:00
2016-05-25 17:16:42 -04:00
2016-05-17 10:17:45 +01:00
2016-06-06 12:50:31 +05:30