debian-mirror-gitlab/app/serializers/project_mirror_entity.rb
2018-12-23 12:14:25 +05:30

9 lines
200 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