method

call

Importance_0
v5.1.7 - Show latest stable - 0 notes - Class: RelationHandler
call(attribute, value) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/relation/predicate_builder/relation_handler.rb, line 4
      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
Register or log in to add new notes.