gitlab-org--gitlab-foss/app/serializers/group_issuable_autocomplete_entity.rb

10 lines
218 B
Ruby
Raw Normal View History

# 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