diff options
author | Kazuki Hasegawa <k_hasegawa@timedia.co.jp> | 2014-04-03 12:38:26 +0900 |
---|---|---|
committer | Kazuki Hasegawa <k_hasegawa@timedia.co.jp> | 2014-04-03 12:38:38 +0900 |
commit | 8e3e04f47dd356ec6a0adba32a440ce388767faa (patch) | |
tree | 7500812a9448416ebcf4d45917de249b9f6248a3 /lib/arel/visitors/to_sql.rb | |
parent | a35fede61ac1a2fcff519ad052f2fcb8808922b9 (diff) | |
download | rails-8e3e04f47dd356ec6a0adba32a440ce388767faa.tar.gz rails-8e3e04f47dd356ec6a0adba32a440ce388767faa.tar.bz2 rails-8e3e04f47dd356ec6a0adba32a440ce388767faa.zip |
flatten object.children in visit_Arel_Node_And
Diffstat (limited to 'lib/arel/visitors/to_sql.rb')
-rw-r--r-- | lib/arel/visitors/to_sql.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb index 84a88e1899..2d81022a7a 100644 --- a/lib/arel/visitors/to_sql.rb +++ b/lib/arel/visitors/to_sql.rb @@ -500,7 +500,7 @@ module Arel end def visit_Arel_Nodes_And o - o.children.map { |x| visit x}.join ' AND ' + o.children.flatten.map { |x| visit x}.join ' AND ' end def visit_Arel_Nodes_Or o |