Method: ActiveRecord::Reflection::AggregateReflection#mapping

Defined in:
lib/active_record/reflection.rb

#mappingObject

:nodoc:



199
200
201
202
# File 'lib/active_record/reflection.rb', line 199

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