summaryrefslogtreecommitdiff
path: root/lib/api/projects.rb
diff options
context:
space:
mode:
authorPeter Golm <golm.peter@gmail.com>2014-01-09 14:25:29 +0100
committerPeter Golm <golm.peter@gmail.com>2014-01-09 14:25:29 +0100
commit4eef64bb9a1a7be4d71ba65475e1078f762e62fb (patch)
tree7682e31d8eb9035f5c000f7dfac6c8b71d8e702c /lib/api/projects.rb
parent1f838a4f98fafa80ae5cfd7759b883b00870072f (diff)
downloadgitlab-ci-4eef64bb9a1a7be4d71ba65475e1078f762e62fb.tar.gz
fix deprections warnings
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r--lib/api/projects.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index f2334a5..dad783f 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -12,7 +12,7 @@ module API
gitlab_projects = Project.from_gitlab(current_user, nil, nil, :authorized)
ids = gitlab_projects.map { |project| project.id }
- projects = Project.where("gitlab_id IN (?)", ids).all
+ projects = Project.where("gitlab_id IN (?)", ids).load
present projects, with: Entities::Project
end
@@ -24,7 +24,7 @@ module API
gitlab_projects = Project.from_gitlab(current_user, nil, nil, :owned)
ids = gitlab_projects.map { |project| project.id }
- projects = Project.where("gitlab_id IN (?)", ids).all
+ projects = Project.where("gitlab_id IN (?)", ids).load
present projects, with: Entities::Project
end