2018-07-19 14:43:13 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-05-03 08:55:14 -04:00
|
|
|
class ProjectMirrorEntity < Grape::Entity
|
2019-09-13 09:26:31 -04:00
|
|
|
prepend_if_ee('::EE::ProjectMirrorEntity') # rubocop: disable Cop/InjectEnterpriseEditionModule
|
|
|
|
|
2018-05-03 08:55:14 -04:00
|
|
|
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
|