method

ids

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: AssociationQueryValue
ids() 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/association_query_value.rb, line 18
        def ids
          case value
          when Relation
            value.select_values.empty? ? value.select(primary_key) : value
          when Array
            value.map { |v| convert_to_id(v) }
          else
            convert_to_id(value)
          end
        end
Register or log in to add new notes.