method

join

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: SelectManager
join(relation, klass = Nodes::InnerJoin) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/arel/select_manager.rb, line 102
    def join(relation, klass = Nodes::InnerJoin)
      return self unless relation

      case relation
      when String, Nodes::SqlLiteral
        raise EmptyJoinError if relation.empty?
        klass = Nodes::StringJoin
      end

      @ctx.source.right << create_join(relation, nil, klass)
      self
    end
Register or log in to add new notes.