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