method

create

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: AliasTracker
create(connection, initial_table, joins) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/associations/alias_tracker.rb, line 9
      def self.create(connection, initial_table, joins)
        if joins.empty?
          aliases = Hash.new(0)
        else
          aliases = Hash.new { |h, k|
            h[k] = initial_count_for(connection, k, joins)
          }
        end
        aliases[initial_table] = 1
        new(connection, aliases)
      end
Register or log in to add new notes.