debian-mirror-gitlab/app/serializers/group_issuable_autocomplete_entity.rb
2021-06-08 01:23:25 +05:30

9 lines
218 B
Ruby

# frozen_string_literal: true
class GroupIssuableAutocompleteEntity < Grape::Entity
expose :iid
expose :title
expose :reference do |issuable, options|
issuable.to_reference(options[:parent_group])
end
end