method

create_with_joins

rails latest stable - Class: ActiveRecord::Associations::AliasTracker

Method deprecated or moved

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

create_with_joins(connection, initial_table, joins)
public

No documentation available.

# File activerecord/lib/active_record/associations/alias_tracker.rb, line 15
      def self.create_with_joins(connection, initial_table, joins)
        if joins.empty?
          create(connection, initial_table)
        else
          aliases = Hash.new { |h, k|
            h[k] = initial_count_for(connection, k, joins)
          }
          aliases[initial_table] = 1
          new(connection, aliases)
        end
      end