diff options
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 |