Welcome to mirror list, hosted at ThFree Co, Russian Federation.

project_mirror_entity.rb « serializers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 215f659caba39b583409d2619e45a18f30c2fa2d (plain)
1
2
3
4
5
6
7
8
9
10
11
# 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')