diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-04-06 18:43:15 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-04-06 18:43:15 +0300 |
commit | 7547e86579a931c31f0b3dd1047e2519d5824fd5 (patch) | |
tree | 015fc4dc585e4a93739f2a234257252d45e6b85d /app/serializers | |
parent | ce55999bc4a31a2f115ec6bfed2332ff292ddf3b (diff) |
Use preload because we don't want join here
Diffstat (limited to 'app/serializers')
-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, |