diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-04-06 23:43:15 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-04-06 23:43:15 +0800 |
commit | 7547e86579a931c31f0b3dd1047e2519d5824fd5 (patch) | |
tree | 015fc4dc585e4a93739f2a234257252d45e6b85d | |
parent | ce55999bc4a31a2f115ec6bfed2332ff292ddf3b (diff) | |
download | gitlab-ce-7547e86579a931c31f0b3dd1047e2519d5824fd5.tar.gz |
Use preload because we don't want join here
-rw-r--r-- | app/serializers/pipeline_serializer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/pipeline_serializer.rb b/app/serializers/pipeline_serializer.rb index 0af9ef0e3f7..e7a9df8ac4e 100644 --- a/app/serializers/pipeline_serializer.rb +++ b/app/serializers/pipeline_serializer.rb @@ -13,7 +13,7 @@ class PipelineSerializer < BaseSerializer def represent(resource, opts = {}) if resource.is_a?(ActiveRecord::Relation) - resource = resource.includes([ + resource = resource.preload([ :retryable_builds, :cancelable_statuses, :trigger_requests, |