Method: ActiveRecord::Reflection::AggregateReflection#mapping

Defined in:
lib/active_record/reflection.rb

#mappingObject

:nodoc:



156
157
158
159
# File 'lib/active_record/reflection.rb', line 156

def mapping
  mapping = options[:mapping] || [name, name]
  mapping.first.is_a?(Array) ? mapping : [mapping]
end