2021-04-29 21:17:54 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Banzai
|
|
|
|
module Filter
|
|
|
|
module References
|
|
|
|
class IssuableReferenceFilter < AbstractReferenceFilter
|
|
|
|
def record_identifier(record)
|
|
|
|
record.iid.to_i
|
|
|
|
end
|
|
|
|
|
|
|
|
def find_object(parent, iid)
|
2021-06-08 01:23:25 +05:30
|
|
|
reference_cache.records_per_parent[parent][iid]
|
2021-04-29 21:17:54 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|