Method: ActiveRecord::Reflection::AggregateReflection#mapping
- Defined in:
- lib/active_record/reflection.rb
#mapping ⇒ Object
:nodoc:
156 157 158 159 |
# File 'lib/active_record/reflection.rb', line 156 def mapping mapping = [:mapping] || [name, name] mapping.first.is_a?(Array) ? mapping : [mapping] end |