Class: ActiveRecord::Associations::Preloader::HasMany
- Inherits:
-
CollectionAssociation
- Object
- Association
- CollectionAssociation
- ActiveRecord::Associations::Preloader::HasMany
- Defined in:
- lib/active_record/associations/preloader/has_many.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from Association
#klass, #model, #owners, #preload_scope, #preloaded_records, #reflection
Instance Method Summary collapse
Methods inherited from Association
#association_key, #initialize, #options, #preload, #records_for, #run, #scope, #table
Constructor Details
This class inherits a constructor from ActiveRecord::Associations::Preloader::Association
Instance Method Details
#association_key_name ⇒ Object
5 6 7 |
# File 'lib/active_record/associations/preloader/has_many.rb', line 5 def association_key_name reflection.foreign_key end |
#owner_key_name ⇒ Object
9 10 11 |
# File 'lib/active_record/associations/preloader/has_many.rb', line 9 def owner_key_name reflection.active_record_primary_key end |