Class: ActiveRecord::AssociationRelation
- Defined in:
- activerecord/lib/active_record/association_relation.rb
Overview
:nodoc:
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(klass, association) ⇒ AssociationRelation
constructor
A new instance of AssociationRelation.
- #proxy_association ⇒ Object
Constructor Details
#initialize(klass, association) ⇒ AssociationRelation
Returns a new instance of AssociationRelation.
5 6 7 8 |
# File 'activerecord/lib/active_record/association_relation.rb', line 5 def initialize(klass, association, **) super(klass) @association = association end |
Instance Method Details
#==(other) ⇒ Object
14 15 16 |
# File 'activerecord/lib/active_record/association_relation.rb', line 14 def ==(other) other == records end |
#proxy_association ⇒ Object
10 11 12 |
# File 'activerecord/lib/active_record/association_relation.rb', line 10 def proxy_association @association end |