aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-06-02 14:25:26 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-06-02 14:25:26 -0300
commit8eb2a7a75bc977b9c4c8311952a142dfa1565238 (patch)
tree0595c1c837c01869515d1cef08cee36cb9ef2e67 /lib
parentaf6fe7fcd0650465616aedf1ec5cdb9d1b67203d (diff)
parent8574e97593a8b2b04dce35b9d7519c1c74ff58d9 (diff)
downloadrails-8eb2a7a75bc977b9c4c8311952a142dfa1565238.tar.gz
rails-8eb2a7a75bc977b9c4c8311952a142dfa1565238.tar.bz2
rails-8eb2a7a75bc977b9c4c8311952a142dfa1565238.zip
Merge pull request #281 from vipulnsward/remove-warning
- Remove four year old deprecation
Diffstat (limited to 'lib')
-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