mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-07-23 02:54:40 +00:00
12 lines
261 B
Ruby
12 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')
|