class ActiveRecord::Relation::WhereClause

def merge(other, rewhere = nil)

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

def merge: (ActiveRecord::Relation::WhereClause other, ?nil rewhere) -> untyped

This signature was generated using 5 samples from 1 application.

def merge(other, rewhere = nil)
  predicates = if rewhere
    except_predicates(other.extract_attributes)
  else
    predicates_unreferenced_by(other)
  end
  WhereClause.new(predicates | other.predicates)
end