diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-05-14 16:02:56 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-05-14 16:02:56 +0300 |
commit | 5dec97e95d6de37c805c5c09adf2348291905be9 (patch) | |
tree | 063f390b5cfbf289e98b6eef7abe1bdd8c5d227e | |
parent | da8c9887459f53401ff575ad49de54c05963cb2c (diff) | |
download | gitlab-ci-5dec97e95d6de37c805c5c09adf2348291905be9.tar.gz |
Add order option to projects API call
-rw-r--r-- | app/models/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 4a1fd9b..471e124 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -10,7 +10,7 @@ class User def gitlab_projects(search = nil, page = 1, per_page = 100) Rails.cache.fetch(cache_key(page, per_page, search)) do - Project.from_gitlab(self, :authorized, { page: page, per_page: per_page, search: search }) + Project.from_gitlab(self, :authorized, { page: page, per_page: per_page, search: search, ci_enabled_first: true }) end end |