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

10 lines
200 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