method

new

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.

new(klass, records, reflection, preload_options)
public

No documentation available.

# File activerecord/lib/active_record/associations/preloader/has_and_belongs_to_many.rb, line 7
        def initialize(klass, records, reflection, preload_options)
          super
          @join_table = Arel::Table.new(reflection.join_table).alias('t0')
        end