Class: Arel::Nodes::And

Inherits:
Object
  • Object
show all
Includes:
ArelExtensions::BooleanFunctions
Defined in:
lib/arel_extensions/boolean_functions.rb

Class Method Summary collapse

Methods included from ArelExtensions::BooleanFunctions

#and, #or, #then, #⋀, #⋁

Class Method Details

.new(*children) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/arel_extensions/boolean_functions.rb', line 30

def self.new *children
  children =
    children.flatten.map { |c|
      c.is_a?(self) ? c.children : c
    }.flatten
  super(children)
end