2018-07-19 18:43:13 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-05-03 12:55:14 +00:00
|
|
|
class ProjectMirrorEntity < Grape::Entity
|
|
|
|
expose :id
|
|
|
|
|
2018-11-12 10:52:48 +00:00
|
|
|
expose :remote_mirrors_attributes, using: RemoteMirrorEntity do |project|
|
|
|
|
project.remote_mirrors
|
2018-05-03 12:55:14 +00:00
|
|
|
end
|
|
|
|
end
|
2020-04-12 21:09:39 +00:00
|
|
|
|
|
|
|
ProjectMirrorEntity.prepend_if_ee('::EE::ProjectMirrorEntity')
|