Class: ActiveRecord::Associations::ClassMethods::JoinDependency

Inherits:
Object
  • Object
show all
Defined in:
lib/associations.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(base, associations, joins) ⇒ JoinDependency

Returns a new instance of JoinDependency.



124
125
126
127
# File 'lib/associations.rb', line 124

def initialize(base, associations, joins)
  base.generate_associations
  base_initialize(base, associations, joins)
end

Instance Method Details

#base_initializeObject

Intercept initialization of JoinDependency objects in order to ensure that associations have been generated before we attempt to create joins for eager loading



123
# File 'lib/associations.rb', line 123

alias :base_initialize :initialize