method
or
v6.0.0 -
Show latest stable
- Class:
ActiveRecord::Relation::WhereClause
or(other)public
No documentation available.
# File activerecord/lib/active_record/relation/where_clause.rb, line 34
def or(other)
left = self - other
common = self - left
right = other - common
if left.empty? || right.empty?
common
else
or_clause = WhereClause.new(
[left.ast.or(right.ast)],
)
common + or_clause
end
end