diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-09-17 15:46:51 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-09-17 15:46:51 -0300 |
commit | 94a8b12943bcdd0c6ac2b820f1300ccd80de87b2 (patch) | |
tree | aee75d102e2d8b35e58b99b06f048219cf6b4fbc /lib/arel/visitors/depth_first.rb | |
parent | 46f94aca3f648cf9a350cbe829f8d155d9af8739 (diff) | |
parent | 112617766915b0068027b4ac809dad8129c88e81 (diff) | |
download | rails-94a8b12943bcdd0c6ac2b820f1300ccd80de87b2.tar.gz rails-94a8b12943bcdd0c6ac2b820f1300ccd80de87b2.tar.bz2 rails-94a8b12943bcdd0c6ac2b820f1300ccd80de87b2.zip |
Merge pull request #137 from dimko/visit_set
Added a visitor for Set objects
Diffstat (limited to 'lib/arel/visitors/depth_first.rb')
-rw-r--r-- | lib/arel/visitors/depth_first.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/arel/visitors/depth_first.rb b/lib/arel/visitors/depth_first.rb index 4d2ecfa5e1..eab20ac831 100644 --- a/lib/arel/visitors/depth_first.rb +++ b/lib/arel/visitors/depth_first.rb @@ -164,6 +164,7 @@ module Arel def visit_Array o o.each { |i| visit i } end + alias :visit_Set :visit_Array def visit_Hash o o.each { |k,v| visit(k); visit(v) } |