summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-05-14 16:02:56 +0300
committerValery Sizov <vsv2711@gmail.com>2015-05-14 16:02:56 +0300
commit5dec97e95d6de37c805c5c09adf2348291905be9 (patch)
tree063f390b5cfbf289e98b6eef7abe1bdd8c5d227e
parentda8c9887459f53401ff575ad49de54c05963cb2c (diff)
downloadgitlab-ci-5dec97e95d6de37c805c5c09adf2348291905be9.tar.gz
Add order option to projects API call
-rw-r--r--app/models/user.rb2
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