Method: ActiveRecord::Relation::WhereClause#merge

Defined in:
activerecord/lib/active_record/relation/where_clause.rb

#merge(other) ⇒ Object



26
27
28
29
30
# File 'activerecord/lib/active_record/relation/where_clause.rb', line 26

def merge(other)
  predicates = except_predicates(other.extract_attributes)

  WhereClause.new(predicates | other.predicates)
end