diff options
author | Stan Hu <stanhu@gmail.com> | 2017-11-19 15:25:48 -0800 |
---|---|---|
committer | Francisco Lopez <fjlopez@gitlab.com> | 2017-12-01 18:32:12 +0100 |
commit | 39d293abd2ec135c53448552d482d17f9726701c (patch) | |
tree | 0985ef0c900af5d52ff9d043a5bdd309a048da1f /lib/api | |
parent | 88e3ce30ae97ac8eb4b25381cfbe7772819cce0c (diff) | |
download | gitlab-ce-39d293abd2ec135c53448552d482d17f9726701c.tar.gz |
Omit the `all` call after Project#project_group_links to avoid unnecessary loads
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/entities.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index ce332fe85d2..ca7708e366e 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -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 |