debian-mirror-gitlab/app/serializers/project_mirror_entity.rb
2019-12-04 20:38:33 +05:30

11 lines
299 B
Ruby

# 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