mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
19 lines
484 B
Ruby
19 lines
484 B
Ruby
module Arel
|
|
module Visitors
|
|
###
|
|
# This class produces SQL for JOIN clauses but omits the "single-source"
|
|
# part of the Join grammar:
|
|
#
|
|
# http://www.sqlite.org/syntaxdiagrams.html#join-source
|
|
#
|
|
# This visitor is used in SelectManager#join_sql and is for backwards
|
|
# compatibility with Arel V1.0
|
|
module JoinSql
|
|
private
|
|
|
|
def visit_Arel_Nodes_SelectCore o
|
|
o.source.right.map { |j| visit j }.join ' '
|
|
end
|
|
end
|
|
end
|
|
end
|