value_for(table, column, value)
public

No documentation available.

# File activerecord/lib/active_record/relation/predicate_builder/association_query_handler.rb, line 4
      def self.value_for(table, column, value)
        associated_table = table.associated_table(column)
        klass = if associated_table.polymorphic_association? && ::Array === value && value.first.is_a?(Base)
          PolymorphicArrayValue
        else
          AssociationQueryValue
        end

        klass.new(associated_table, value)
      end