gitlab-org--gitlab-foss/app/graphql/resolvers/concerns/resolves_ids.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
213 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module ResolvesIds
extend ActiveSupport::Concern
def resolve_ids(ids)
Array.wrap(ids).map do |id|
next unless id.present?
id.model_id
end.compact
end
end