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