debian-mirror-gitlab/app/serializers/project_mirror_entity.rb
2020-04-22 19:07:51 +05:30

11 lines
264 B
Ruby

# frozen_string_literal: true
class ProjectMirrorEntity < Grape::Entity
expose :id
expose :remote_mirrors_attributes, using: RemoteMirrorEntity do |project|
project.remote_mirrors
end
end
ProjectMirrorEntity.prepend_if_ee('::EE::ProjectMirrorEntity')