method

aggregate_mapping

rails latest stable - Class: ActiveRecord::DynamicMatchers

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

aggregate_mapping(reflection)
private

No documentation available.

# File activerecord/lib/active_record/dynamic_matchers.rb, line 77
    def aggregate_mapping(reflection)
      mapping = reflection.options[:mapping] || [reflection.name, reflection.name]
      mapping.first.is_a?(Array) ? mapping : [mapping]
    end