Class: ActiveFedora::Reflection::HasAndBelongsToManyReflection

Inherits:
AssociationReflection show all
Defined in:
lib/active_fedora/reflection.rb

Overview

:nodoc:

Constant Summary

Constants inherited from AssociationReflection

AssociationReflection::INVALID_AUTOMATIC_INVERSE_OPTIONS, AssociationReflection::VALID_AUTOMATIC_INVERSE_MACROS

Instance Attribute Summary

Attributes inherited from AssociationReflection

#parent_reflection

Attributes inherited from MacroReflection

#active_fedora, #name, #options, #scope

Instance Method Summary collapse

Methods inherited from AssociationReflection

#belongs_to?, #check_validity!, #check_validity_of_inverse!, #collect_join_chain, #constructable?, #create_association, #foreign_key, #has_inverse?, #has_many?, #initialize, #inverse_of, #predicate, #predicate_for_solr, #solr_key, #validate?

Methods inherited from MacroReflection

#==, #autosave=, #compute_class, #initialize, #klass

Methods inherited from AbstractReflection

#alias_candidate, #build_association, #chain, #check_validity_of_inverse!, #class_name, #constraints, #inverse_of, #through_reflection?

Constructor Details

This class inherits a constructor from ActiveFedora::Reflection::AssociationReflection

Instance Method Details

#association_classObject



503
504
505
# File 'lib/active_fedora/reflection.rb', line 503

def association_class
  Associations::HasAndBelongsToManyAssociation
end

#collection?Boolean

Returns:

  • (Boolean)


495
496
497
# File 'lib/active_fedora/reflection.rb', line 495

def collection?
  true
end

#has_and_belongs_to_many?Boolean

Returns:

  • (Boolean)


499
500
501
# File 'lib/active_fedora/reflection.rb', line 499

def has_and_belongs_to_many?
  true
end

#macroObject



491
492
493
# File 'lib/active_fedora/reflection.rb', line 491

def macro
  :has_and_belongs_to_many
end