diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-02 14:25:26 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-02 14:25:26 -0300 |
commit | 8eb2a7a75bc977b9c4c8311952a142dfa1565238 (patch) | |
tree | 0595c1c837c01869515d1cef08cee36cb9ef2e67 /lib/arel | |
parent | af6fe7fcd0650465616aedf1ec5cdb9d1b67203d (diff) | |
parent | 8574e97593a8b2b04dce35b9d7519c1c74ff58d9 (diff) | |
download | rails-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/arel')
-rw-r--r-- | lib/arel/nodes/and.rb | 6 |
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 |