blob: f51ea4fde0ecc3b6629641bb3a246397572cfa41 (
plain) (
tree)
|
|
# frozen_string_literal: true
module ActiveRecord
class PredicateBuilder
class RelationHandler # :nodoc:
def call(attribute, value)
if value.select_values.empty?
value = value.select(value.arel_attribute(value.klass.primary_key))
end
attribute.in(value.arel)
end
end
end
end
|