Class: ActiveRecord::Associations::ClassMethods::JoinDependency
- Inherits:
-
Object
- Object
- ActiveRecord::Associations::ClassMethods::JoinDependency
- Defined in:
- lib/associations.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#base_initialize ⇒ Object
Intercept initialization of JoinDependency objects in order to ensure that associations have been generated before we attempt to create joins for eager loading.
-
#initialize(base, associations, joins) ⇒ JoinDependency
constructor
A new instance of JoinDependency.
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_initialize ⇒ Object
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 |