Class: ActiveRecord::AssociationRelation

Inherits:
Relation show all
Defined in:
activerecord/lib/active_record/association_relation.rb

Overview

:nodoc:

Instance Method Summary collapse

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_associationObject



10
11
12
# File 'activerecord/lib/active_record/association_relation.rb', line 10

def proxy_association
  @association
end