method

add_joins!

add_joins!(sql, joins, scope = :auto)
private

The optional scope argument is for the current :find scope.