Commit 6549a892 authored by Patrick Bajao's avatar Patrick Bajao

Concatenate association to be preloaded

To be consistent with how we add associations to be preloaded, we
concatenate instead of pushing.

This also avoids accidental side effects of mutation.
parent afe9a679
......@@ -11,7 +11,7 @@ module EE
when 'MergeRequest'
super + [approval_rules: [:users, :group_users], approval_project_rules: [:users, :group_users]]
when 'Issue'
super.push(*issue_preloads)
super + issue_preloads
else
super
end
......
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