aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/and.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/nodes/and.rb')
-rw-r--r--lib/arel/nodes/and.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/arel/nodes/and.rb b/lib/arel/nodes/and.rb
index 62e8ef6f11..8e1afda709 100644
--- a/lib/arel/nodes/and.rb
+++ b/lib/arel/nodes/and.rb
@@ -3,12 +3,8 @@ module Arel
class And < Arel::Nodes::Node
attr_reader :children
- def initialize children, right = nil
+ def initialize children
super()
- unless Array === children
- warn "(#{caller.first}) AND nodes should be created with a list"
- children = [children, right]
- end
@children = children
end