Class: ActiveRecord::Reflection::HasAndBelongsToManyReflection
- Inherits:
-
AssociationReflection
- Object
- AbstractReflection
- MacroReflection
- AssociationReflection
- ActiveRecord::Reflection::HasAndBelongsToManyReflection
- Defined in:
- lib/active_record/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
#foreign_type, #parent_reflection, #type
Attributes inherited from MacroReflection
#active_record, #name, #options, #plural_name, #scope
Instance Method Summary collapse
- #collection? ⇒ Boolean
-
#initialize(name, scope, options, active_record) ⇒ HasAndBelongsToManyReflection
constructor
A new instance of HasAndBelongsToManyReflection.
- #macro ⇒ Object
Methods inherited from AssociationReflection
#active_record_primary_key, #association_class, #association_foreign_key, #association_primary_key, #association_scope_cache, #belongs_to?, #chain, #check_preloadable!, #check_validity!, #check_validity_of_inverse!, #compute_class, #constructable?, #counter_cache_column, #foreign_key, #has_inverse?, #has_one?, #inverse_of, #join_id_for, #join_table, #klass, #nested?, #polymorphic?, #polymorphic_inverse_of, #scope_chain, #source_reflection, #through_reflection, #validate?
Methods inherited from MacroReflection
#==, #autosave=, #compute_class, #klass
Methods inherited from AbstractReflection
#build_association, #class_name, #join_keys, #primary_key_type, #quoted_table_name, #source_macro, #table_name
Constructor Details
#initialize(name, scope, options, active_record) ⇒ HasAndBelongsToManyReflection
Returns a new instance of HasAndBelongsToManyReflection.
615 616 617 |
# File 'lib/active_record/reflection.rb', line 615 def initialize(name, scope, , active_record) super end |
Instance Method Details
#collection? ⇒ Boolean
621 622 623 |
# File 'lib/active_record/reflection.rb', line 621 def collection? true end |
#macro ⇒ Object
619 |
# File 'lib/active_record/reflection.rb', line 619 def macro; :has_and_belongs_to_many; end |