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

12 lines
299 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
2019-12-04 20:38:33 +05:30
prepend_if_ee('::EE::ProjectMirrorEntity') # rubocop: disable Cop/InjectEnterpriseEditionModule
2018-10-15 14:42:47 +05:30
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