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



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

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