method

queries

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: PolymorphicArrayValue
queries() 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_value.rb, line 11
      def queries
        return [ associated_table.join_foreign_key => values ] if values.empty?

        type_to_ids_mapping.map do |type, ids|
          query = {}
          query[associated_table.join_foreign_type] = type if type
          query[associated_table.join_foreign_key] = ids
          query
        end
      end
Register or log in to add new notes.