method
join
v3.2.1 -
Show latest stable
- Class:
ActiveRecord::Associations::Preloader::HasAndBelongsToMany
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