Class: ActiveRecord::Reflection::HasAndBelongsToManyReflection
- Inherits:
-
AssociationReflection
- Object
- AbstractReflection
- MacroReflection
- AssociationReflection
- ActiveRecord::Reflection::HasAndBelongsToManyReflection
- Defined in:
- lib/active_record/reflection.rb
Overview
:nodoc:
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
Methods inherited from AssociationReflection
#active_record_primary_key, #add_as_polymorphic_through, #add_as_source, #add_as_through, #association_class, #association_foreign_key, #association_primary_key, #association_scope_cache, #belongs_to?, #check_eager_loadable!, #check_validity!, #clear_association_scope_cache, #collect_join_chain, #compute_class, #extensions, #foreign_key, #has_inverse?, #has_one?, #has_scope?, #initialize, #join_foreign_key, #join_id_for, #join_primary_key, #join_primary_type, #join_table, #nested?, #polymorphic?, #polymorphic_inverse_of, #polymorphic_name, #source_reflection, #through_reflection, #validate?
Methods inherited from MacroReflection
#==, #autosave=, #compute_class, #compute_name, #initialize, #klass, #scope_for
Methods inherited from AbstractReflection
#alias_candidate, #build_association, #build_scope, #chain, #check_validity_of_inverse!, #class_name, #constraints, #counter_cache_column, #counter_must_be_updated_by_has_many?, #has_active_cached_counter?, #has_cached_counter?, #initialize, #inverse_of, #inverse_updates_counter_in_memory?, #inverse_which_updates_counter_cache, #join_scope, #join_scopes, #klass_join_scope, #scopes, #strict_loading?, #strict_loading_violation_message, #table_name, #through_reflection?
Constructor Details
This class inherits a constructor from ActiveRecord::Reflection::AssociationReflection
Instance Method Details
#collection? ⇒ Boolean
964 965 966 |
# File 'lib/active_record/reflection.rb', line 964 def collection? true end |
#macro ⇒ Object
962 |
# File 'lib/active_record/reflection.rb', line 962 def macro; :has_and_belongs_to_many; end |