method
merge_clauses
v7.2.3 -
Show latest stable
- Class:
ActiveRecord::Relation::Merger
merge_clauses()private
No documentation available.
# File activerecord/lib/active_record/relation/merger.rb, line 176
def merge_clauses
relation.from_clause = other.from_clause if replace_from_clause?
where_clause = relation.where_clause.merge(other.where_clause)
relation.where_clause = where_clause unless where_clause.empty?
having_clause = relation.having_clause.merge(other.having_clause)
relation.having_clause = having_clause unless having_clause.empty?
end