Class: ActiveFedora::AssociationRelation

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

Constant Summary

Constants included from Delegation

Delegation::BLACKLISTED_ARRAY_METHODS

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, #reset, #scope_for_create, #scoping, #to_a, #where_values_hash

Methods included from FinderMethods

#exists?, #find, #find_each, #find_one, #find_take, #first, #last, #search_by_id, #search_in_batches, #search_with_conditions, #take

Methods included from Calculations

#count

Methods included from SpawnMethods

#merge, #merge!, #spawn

Methods included from QueryMethods

#build_where, #create_with_value, #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=

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