lib/arel-helpers/join_association.rb
def to_sql(node, table, binds)
        visitor = table.connection.visitor
        collect = visitor.accept(node, Arel::Collectors::Bind.new)
        collect.substitute_binds(binds).join
      end
# activerecord uses JoinDependency to automagically generate inner join statements for
# any type of association (belongs_to, has_many, and has_and_belongs_to_many).
# For example, for HABTM associations, two join statements are required.
# This method encapsulates that functionality and yields an intermediate object for chaining.
# It also allows you to use an outer join instead of the default inner via the join_type arg.
activerecord uses JoinDependency to automagically generate inner join statements for
any type of association (belongs_to, has_many, and has_and_belongs_to_many).
For example, for HABTM associations, two join statements are required.
This method encapsulates that functionality and yields an intermediate object for chaining.
It also allows you to use an outer join instead of the default inner via the join_type arg.
activerecord uses JoinDependency to automagically generate inner join statements for any type of association ( belongs_to has_many and has_and_belongs_to_many ) . For example for HABTM associations two join statements are required . This method encapsulates that functionality and yields an intermediate object for chaining . It also allows you to use an outer join instead of the default inner via the join_type arg .
def to_sql(node, table, binds)
        visitor = table.connection.visitor
        collect = visitor.accept(node, Arel::Collectors::Bind.new)
        collect.substitute_binds(binds).join
      end
def to_sql ( node , table , binds ) visitor = table . connection . visitor collect = visitor . accept ( node , Arel :: Collectors :: Bind . new ) collect . substitute_binds ( binds ) . join end
activerecord uses JoinDependency to automagically generate inner join statements for
any type of association (belongs_to, has_many, and has_and_belongs_to_many).
activerecord uses JoinDependency to automagically generate inner join statements for any type of association ( belongs_to has_many and has_and_belongs_to_many ) .
node
table
binds