Class: ActiveRecord::Reflection::AggregateReflection
- Inherits:
-
MacroReflection
- Object
- 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
Instance Method Summary collapse
-
#klass ⇒ Object
:nodoc:.
Methods inherited from MacroReflection
#==, #initialize, #name, #options
Constructor Details
This class inherits a constructor from ActiveRecord::Reflection::MacroReflection
Instance Method Details
#klass ⇒ Object
:nodoc:
98 99 100 |
# File 'lib/active_record/reflection.rb', line 98 def klass Object.const_get([:class_name] || name_to_class_name(name.id2name)) end |