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:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-09-19 12:15:57 +0300
committerBob Van Landuyt <bob@vanlanduyt.co>2017-10-04 23:49:41 +0300
commit31f775689396722e38de20157b46a75b1fe40582 (patch)
treea91dfc0f12c5ac8b844094957519b131967d33f2 /app/controllers/groups_controller.rb
parente3daa73fbfce6f178de512aeb165072f1ffde503 (diff)
`current_user:` as a keyword argument
Diffstat (limited to 'app/controllers/groups_controller.rb')
-rw-r--r--app/controllers/groups_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb
index d35364ffe1e..1cec83a3bc6 100644
--- a/app/controllers/groups_controller.rb
+++ b/app/controllers/groups_controller.rb
@@ -118,7 +118,9 @@ class GroupsController < Groups::ApplicationController
protected
def setup_children(parent)
- @children = GroupChildrenFinder.new(current_user, parent_group: parent, params: params).execute
+ @children = GroupChildrenFinder.new(current_user: current_user,
+ parent_group: parent,
+ params: params).execute
@children = @children.page(params[:page])
end