Flowdock
method

type_to_ids_mapping

Importance_0
v5.1.7 - Show latest stable - 0 notes - Class: PolymorphicArrayValue
type_to_ids_mapping() public

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_handler.rb, line 39
      def type_to_ids_mapping
        default_hash = Hash.new { |hsh, key| hsh[key] = [] }
        values.each_with_object(default_hash) { |value, hash| hash[base_class(value).name] << convert_to_id(value) }
      end
Register or log in to add new notes.