Commit 48156759 authored by Tetiana Chupryna's avatar Tetiana Chupryna

Preload security_setting to fix test

parent 431eee91
...@@ -75,3 +75,5 @@ class PipelineSerializer < BaseSerializer ...@@ -75,3 +75,5 @@ class PipelineSerializer < BaseSerializer
] ]
end end
end end
PipelineSerializer.prepend_if_ee('EE::PipelineSerializer')
# frozen_string_literal: true
module EE
module PipelineSerializer
extend ActiveSupport::Concern
private
def preloaded_relations
relations = super
project_relation = relations.detect { |item| item.is_a?(Hash) }
project_relation[:project].push(:security_setting)
relations
end
end
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