Class: ActiveRecord::Reflection::AggregateReflection
- Inherits:
-
MacroReflection
- Object
- MacroReflection
- ActiveRecord::Reflection::AggregateReflection
- Defined in:
- lib/ocean-dynamo/active_record_stuff/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, #macro, #name, #options, #plural_name, #scope
Instance Method Summary collapse
-
#mapping ⇒ Object
:nodoc: all.
Methods inherited from MacroReflection
#==, #class_name, #initialize, #klass
Constructor Details
This class inherits a constructor from ActiveRecord::Reflection::MacroReflection
Instance Method Details
#mapping ⇒ Object
:nodoc: all
156 157 158 159 |
# File 'lib/ocean-dynamo/active_record_stuff/reflection.rb', line 156 def mapping mapping = [:mapping] || [name, name] mapping.first.is_a?(Array) ? mapping : [mapping] end |