debian-mirror-gitlab/app/serializers/project_mirror_entity.rb
2021-06-08 01:23:25 +05:30

11 lines
261 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_mod_with('ProjectMirrorEntity')