Class: ActiveRecord::Reflection::AggregateReflection
- Inherits:
 - 
      MacroReflection
      
        
- Object
 - AbstractReflection
 - MacroReflection
 - ActiveRecord::Reflection::AggregateReflection
 
 
- Defined in:
 - lib/active_record/reflection.rb
 
Overview
Holds all the meta-data about an aggregation as it was specified in the Active Record class.
Instance Attribute Summary
Attributes inherited from MacroReflection
#active_record, #name, #options, #plural_name, #scope
Instance Method Summary collapse
- 
  
    
      #mapping  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
:nodoc:.
 
Methods inherited from MacroReflection
#==, #autosave=, #compute_class, #initialize, #klass, #scope_for
Methods inherited from AbstractReflection
#alias_candidate, #build_association, #chain, #check_validity_of_inverse!, #class_name, #constraints, #counter_cache_column, #counter_must_be_updated_by_has_many?, #has_cached_counter?, #inverse_of, #inverse_updates_counter_in_memory?, #inverse_which_updates_counter_cache, #join_keys, #primary_key_type, #quoted_table_name, #table_name, #through_reflection?
Constructor Details
This class inherits a constructor from ActiveRecord::Reflection::MacroReflection
Instance Method Details
#mapping ⇒ Object
:nodoc:
      328 329 330 331  | 
    
      # File 'lib/active_record/reflection.rb', line 328 def mapping mapping = [:mapping] || [name, name] mapping.first.is_a?(Array) ? mapping : [mapping] end  |