2021-10-27 15:23:28 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module ResolvesIds
|
|
|
|
extend ActiveSupport::Concern
|
|
|
|
|
2022-07-16 23:28:13 +05:30
|
|
|
def resolve_ids(ids)
|
2021-10-27 15:23:28 +05:30
|
|
|
Array.wrap(ids).map do |id|
|
|
|
|
next unless id.present?
|
|
|
|
|
|
|
|
id.model_id
|
|
|
|
end.compact
|
|
|
|
end
|
|
|
|
end
|