Class: ActiveRecord::Reflection::AggregateReflection

Inherits:
MacroReflection show all
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

Instance Method Summary collapse

Methods inherited from MacroReflection

#==, #initialize, #macro, #name, #options

Constructor Details

This class inherits a constructor from ActiveRecord::Reflection::MacroReflection

Instance Method Details

#klassObject

:nodoc:



104
105
106
# File 'lib/active_record/reflection.rb', line 104

def klass
  Object.const_get(options[:class_name] || name_to_class_name(name.id2name)) 
end