method

join

rails latest stable - Class: ActiveRecord::Associations::Preloader::HasAndBelongsToMany

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.0.2) is shown here.

join()
private

No documentation available.

# File activerecord/lib/active_record/associations/preloader/has_and_belongs_to_many.rb, line 51
        def join
          condition = table[reflection.association_primary_key].eq(
            join_table[reflection.association_foreign_key])

          table.create_join(join_table, table.create_on(condition))
        end