instance method aggregate_mapping

Ruby on Rails 3.2.22.5

Since v3.2.22.5 Last seen in v3.2.22.5 Private

Signature

aggregate_mapping(reflection)

No documentation comment.

Parameters

reflection req
Source
# 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

Defined in activerecord/lib/active_record/dynamic_matchers.rb line 77 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::DynamicMatchers

Type at least 2 characters to search.

↑↓ navigate · open · esc close