Flowdock
method

type_to_ids_mapping

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: PolymorphicArrayValue
type_to_ids_mapping() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/relation/predicate_builder/polymorphic_array_value.rb, line 23
        def type_to_ids_mapping
          default_hash = Hash.new { |hsh, key| hsh[key] = [] }
          values.each_with_object(default_hash) do |value, hash|
            hash[klass(value).polymorphic_name] << convert_to_id(value)
          end
        end
Register or log in to add new notes.