Minimize the operation
Returns:
the minimized OrOperation
the minimized operation
521 522 523 524 525 526 527 528 529
# File 'lib/dm-core/query/conditions/operation.rb', line 521 def minimize minimize_operands return Operation.new(:null) if any? { |op| op.nil? } prune_operands one? ? first : self end