diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2018-12-17 20:59:23 +0800 |
---|---|---|
committer | Heinrich Lee Yu <hleeyu@gmail.com> | 2018-12-31 11:09:17 +0800 |
commit | 2490cfeeb2f8426b1a8f4e24bd0297e41a870ca2 (patch) | |
tree | e91cad8148af518f45f0e1e7fb021e4622b785b3 /app/finders | |
parent | 030c7068fc8127e1ff8afa7c8daffee034c7b929 (diff) | |
download | gitlab-ce-2490cfeeb2f8426b1a8f4e24bd0297e41a870ca2.tar.gz |
Refactor Milestone.for_projects_and_groups
Refactored to use Rails 5 ActiveRecord `or` so that it can handle ids,
objects, array of objects, or relations properly.
Diffstat (limited to 'app/finders')
-rw-r--r-- | app/finders/issuable_finder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/issuable_finder.rb b/app/finders/issuable_finder.rb index a144db9fcd1..1a69ec85d18 100644 --- a/app/finders/issuable_finder.rb +++ b/app/finders/issuable_finder.rb @@ -155,7 +155,7 @@ class IssuableFinder elsif group [group] elsif current_user - Gitlab::GroupHierarchy.new(current_user.authorized_groups, current_user.groups).all_groups + Gitlab::ObjectHierarchy.new(current_user.authorized_groups, current_user.groups).all_objects else [] end |