Commit 1a62e902 authored by Adam Hegyi's avatar Adam Hegyi

Apply reviewer feedback

- Rename preload_status to preload_associations
parent 16b216a2
......@@ -39,7 +39,7 @@ module Autocomplete
end
items.uniq.tap do |unique_items|
preload_status(unique_items)
preload_associations(unique_items)
end
end
......@@ -95,7 +95,7 @@ module Autocomplete
end
# rubocop: disable CodeReuse/ActiveRecord
def preload_status(items)
def preload_associations(items)
ActiveRecord::Associations::Preloader.new.preload(items, :status)
end
# rubocop: enable CodeReuse/ActiveRecord
......
---
title: Expose user availablility data on issuable pages
merge_request: 52333
author:
type: other
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment