debian-mirror-gitlab/app/serializers/project_mirror_entity.rb

12 lines
264 B
Ruby
Raw Normal View History

2018-11-18 11:00:15 +05:30
# frozen_string_literal: true
2018-10-15 14:42:47 +05:30
class ProjectMirrorEntity < Grape::Entity
expose :id
2019-02-15 15:39:39 +05:30
expose :remote_mirrors_attributes, using: RemoteMirrorEntity do |project|
project.remote_mirrors
2018-10-15 14:42:47 +05:30
end
end
2020-04-22 19:07:51 +05:30
ProjectMirrorEntity.prepend_if_ee('::EE::ProjectMirrorEntity')