Class: ActiveFedora::AssociationRelation

Inherits:
Relation
  • Object
show all
Defined in:
lib/active_fedora/association_relation.rb

Instance Attribute Summary

Attributes inherited from Relation

#default_scoped, #klass, #loaded, #values

Instance Method Summary collapse

Methods inherited from Relation

#==, #create, #delete_all, #destroy_all, #initialize_copy, #inspect, #reset, #to_a

Methods included from FinderMethods

#exists?, #find, #find_each, #find_in_batches, #find_one, #find_with_conditions, #first, #last

Methods included from Calculations

#calculate, #count

Methods included from SpawnMethods

#merge, #merge!, #spawn

Methods included from QueryMethods

#build_where, #extending!, #extending_values, #extending_values=, #limit, #limit!, #limit_value, #limit_value=, #none!, #offset, #offset!, #offset_value, #offset_value=, #order, #order!, #order_values, #order_values=, #select, #where, #where!, #where_values, #where_values=

Methods included from Delegation

#method_missing

Constructor Details

#initialize(klass, association) ⇒ AssociationRelation

Returns a new instance of AssociationRelation.



3
4
5
6
# File 'lib/active_fedora/association_relation.rb', line 3

def initialize(klass, association)
  super(klass)
  @association = association
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ActiveFedora::Delegation

Instance Method Details

#proxy_associationObject



8
9
10
# File 'lib/active_fedora/association_relation.rb', line 8

def proxy_association
  @association
end