method

merge

rails latest stable - Class: ActiveRecord::Relation::WhereClause
merge(other, rewhere = nil)
public

No documentation available.

# File activerecord/lib/active_record/relation/where_clause.rb, line 26
      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