Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmad Sherif <me@ahmadsherif.com>2016-08-12 16:52:58 +0300
committerAhmad Sherif <me@ahmadsherif.com>2016-08-15 13:49:31 +0300
commit76db0dc115316e53ed7d2189cc8789f0a0cef3c2 (patch)
treec0557300cb94ccb44930c17df33f8d5409b1bb4d /app/finders/todos_finder.rb
parentd13c36f72de6b1c56e2063dafddd14ecbb430b9a (diff)
Pass project IDs relation to ProjectsFinder instead of using a block
Diffstat (limited to 'app/finders/todos_finder.rb')
-rw-r--r--app/finders/todos_finder.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/finders/todos_finder.rb b/app/finders/todos_finder.rb
index 9b24a86e1c1..4fe0070552e 100644
--- a/app/finders/todos_finder.rb
+++ b/app/finders/todos_finder.rb
@@ -95,9 +95,7 @@ class TodosFinder
def projects(items)
item_project_ids = items.reorder(nil).select(:project_id)
- ProjectsFinder.new.execute(current_user) do |relation|
- relation.where(id: item_project_ids)
- end
+ ProjectsFinder.new.execute(current_user, item_project_ids)
end
def type?