diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-19 11:47:00 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-19 11:47:00 -0700 |
commit | 691c9d2d9643211bcc2d24f68ef05f0418a157e6 (patch) | |
tree | 213e6a4c1c04d7343a3f5c07f3985b2649bc51fb /lib/arel/visitors/join_sql.rb | |
parent | 1d30f5cdae81e30df493ed9bb686b5621e7c3664 (diff) | |
download | rails-691c9d2d9643211bcc2d24f68ef05f0418a157e6.tar.gz rails-691c9d2d9643211bcc2d24f68ef05f0418a157e6.tar.bz2 rails-691c9d2d9643211bcc2d24f68ef05f0418a157e6.zip |
doing a little cleanup on the visitors
Diffstat (limited to 'lib/arel/visitors/join_sql.rb')
-rw-r--r-- | lib/arel/visitors/join_sql.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/arel/visitors/join_sql.rb b/lib/arel/visitors/join_sql.rb index 49625e850d..d3fb18d3c6 100644 --- a/lib/arel/visitors/join_sql.rb +++ b/lib/arel/visitors/join_sql.rb @@ -9,6 +9,8 @@ module Arel # This visitor is used in SelectManager#join_sql and is for backwards # compatibility with Arel V1.0 class JoinSql < Arel::Visitors::ToSql + private + def visit_Arel_Nodes_SelectCore o [o.froms].grep(Nodes::Join).map { |x| visit x }.join ', ' end |