method
contradiction?
rails latest stable - Class:
ActiveRecord::Relation::WhereClause
contradiction?()public
No documentation available.
# File activerecord/lib/active_record/relation/where_clause.rb, line 99
def contradiction?
predicates.any? do |x|
case x
when Arel::Nodes::In
Array === x.right && x.right.empty?
when Arel::Nodes::Equality
x.right.respond_to?(:unboundable?) && x.right.unboundable?
end
end
end