class ActiveRecord::Relation::WhereClause

def predicates_unreferenced_by(other)

Experimental RBS support (using type sampling data from the type_fusion project).

def predicates_unreferenced_by: (ActiveRecord::Relation::WhereClause other) -> untyped

This signature was generated using 7 samples from 1 application.

def predicates_unreferenced_by(other)
  referenced_columns = other.referenced_columns
  predicates.reject do |node|
    attr = extract_attribute(node) || begin
      node.left if equality_node?(node) && node.left.is_a?(Arel::Predications)
    end
    attr && referenced_columns[attr]
  end
end