method

create_with_joins

create_with_joins(connection, initial_table, joins, type_caster)
public

No documentation available.

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