summaryrefslogtreecommitdiff
path: root/app/serializers/project_mirror_entity.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-12 21:09:39 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-12 21:09:39 +0000
commitcdf9ef52fe13899be29068992a9858f8b0e72457 (patch)
treed26b77d147c1a8506213c05048f026fe9ef8ad1e /app/serializers/project_mirror_entity.rb
parent13150a38e701080f6c64d4925c838214a3f5ef2c (diff)
downloadgitlab-ce-cdf9ef52fe13899be29068992a9858f8b0e72457.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/serializers/project_mirror_entity.rb')
-rw-r--r--app/serializers/project_mirror_entity.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/serializers/project_mirror_entity.rb b/app/serializers/project_mirror_entity.rb
index 2efd820d893..daea209deb4 100644
--- a/app/serializers/project_mirror_entity.rb
+++ b/app/serializers/project_mirror_entity.rb
@@ -1,11 +1,11 @@
# frozen_string_literal: true
class ProjectMirrorEntity < Grape::Entity
- prepend_if_ee('::EE::ProjectMirrorEntity') # rubocop: disable Cop/InjectEnterpriseEditionModule
-
expose :id
expose :remote_mirrors_attributes, using: RemoteMirrorEntity do |project|
project.remote_mirrors
end
end
+
+ProjectMirrorEntity.prepend_if_ee('::EE::ProjectMirrorEntity')