Commit 39d293ab authored by Stan Hu's avatar Stan Hu Committed by Francisco Lopez

Omit the `all` call after Project#project_group_links to avoid unnecessary loads

parent 88e3ce30
......@@ -156,7 +156,7 @@ module API
expose :public_builds, as: :public_jobs
expose :ci_config_path
expose :shared_with_groups do |project, options|
SharedGroup.represent(project.project_group_links.all, options)
SharedGroup.represent(project.project_group_links, options)
end
expose :only_allow_merge_if_pipeline_succeeds
expose :request_access_enabled
......
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