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

12 lines
261 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
2021-06-08 01:23:25 +05:30
ProjectMirrorEntity.prepend_mod_with('ProjectMirrorEntity')