debian-mirror-gitlab/app/graphql/resolvers/concerns/resolves_ids.rb
2022-07-17 14:43:12 +02:00

13 lines
213 B
Ruby

# 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