method

convert_to_id

Importance_0
v5.1.7 - Show latest stable - 0 notes - Class: AssociationQueryValue
convert_to_id(value) 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_handler.rb, line 78
        def convert_to_id(value)
          case value
          when Base
            value._read_attribute(primary_key)
          else
            value
          end
        end
Register or log in to add new notes.