Class: Formed::AssociationRelation
- Defined in:
- lib/formed/association_relation.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from Relation
#klass, #loaded, #skip_preloading_value
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(klass, association) ⇒ AssociationRelation
constructor
A new instance of AssociationRelation.
-
#merge!(other, *rest) ⇒ Object
:nodoc:.
- #proxy_association ⇒ Object
Methods inherited from Relation
#any?, #empty?, #encode_with, #initialize_copy, #many?, #new, #none?, #one?, #records, #size, #to_ary
Methods included from Relation::Delegation
delegated_classes, uncacheable_methods
Constructor Details
#initialize(klass, association) ⇒ AssociationRelation
Returns a new instance of AssociationRelation.
5 6 7 8 |
# File 'lib/formed/association_relation.rb', line 5 def initialize(klass, association, **) super(klass) @association = association end |
Instance Method Details
#==(other) ⇒ Object
14 15 16 |
# File 'lib/formed/association_relation.rb', line 14 def ==(other) other == records end |
#merge!(other, *rest) ⇒ Object
:nodoc:
18 19 20 |
# File 'lib/formed/association_relation.rb', line 18 def merge!(other, *rest) # :nodoc: # no-op # end |
#proxy_association ⇒ Object
10 11 12 |
# File 'lib/formed/association_relation.rb', line 10 def proxy_association @association end |