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-10-11 18:05:39 +0300
committerBob Van Landuyt <bob@vanlanduyt.co>2017-10-12 12:36:54 +0300
commit18907efbc9209ee39d8348eef5b3c7321b9aca26 (patch)
treef1b3d0c055d52bcbe7908b2d4abde1c12a3476ad /app/models/concerns/loaded_in_group_list.rb
parent8cde1e3285c870c85bee3a9a9ff4b8e5f53cff86 (diff)
Pass `archived:` as a keyword argument
Diffstat (limited to 'app/models/concerns/loaded_in_group_list.rb')
-rw-r--r--app/models/concerns/loaded_in_group_list.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/concerns/loaded_in_group_list.rb b/app/models/concerns/loaded_in_group_list.rb
index 8b519d742c5..4c4045fdab2 100644
--- a/app/models/concerns/loaded_in_group_list.rb
+++ b/app/models/concerns/loaded_in_group_list.rb
@@ -24,13 +24,13 @@ module LoadedInGroupList
MEMBER_COUNT_SQL].freeze
module ClassMethods
- def with_counts(archived = nil)
+ def with_counts(archived:)
selects = COUNT_SELECTS.dup << project_count(archived)
select(selects)
end
- def with_selects_for_list(archived = nil)
- with_route.with_counts(archived)
+ def with_selects_for_list(archived: nil)
+ with_route.with_counts(archived: archived)
end
def project_count(archived)