gitlab-org--gitlab-foss/app/serializers/project_mirror_entity.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
261 B
Ruby
Raw Normal View History

# 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_mod_with('ProjectMirrorEntity')