method
aggregate_mapping
v3.0.0 -
Show latest stable
- Class:
ActiveRecord::Base
aggregate_mapping(reflection)protected
No documentation available.
# File activerecord/lib/active_record/base.rb, line 1246
def aggregate_mapping(reflection)
mapping = reflection.options[:mapping] || [reflection.name, reflection.name]
mapping.first.is_a?(Array) ? mapping : [mapping]
end