Sha256: eef4f19f102d19cad374837989eef5c84775911c49f8c30f6d325fd25919c693

Contents?: true

Size: 490 Bytes

Versions: 7

Compression:

Stored size: 490 Bytes

Contents

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, a
        o.source.right.map { |j| visit j, a }.join ' '
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/arel-5.0.1.20140414130214/lib/arel/visitors/join_sql.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/arel-5.0.1.20140414130214/lib/arel/visitors/join_sql.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/arel-5.0.1.20140414130214/lib/arel/visitors/join_sql.rb
arel-5.0.1.20140414130214 lib/arel/visitors/join_sql.rb
arel-4.0.2 lib/arel/visitors/join_sql.rb
arel-5.0.0 lib/arel/visitors/join_sql.rb
arel-4.0.1 lib/arel/visitors/join_sql.rb