You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: validates_ownership_of.rb
    path of file: ./repos/validators/lib/validators
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module ActiveModel
  module Validations
    class OwnershipValidator < EachValidator
      WITH_OPTIONS = %w[String Symbol].freeze

      def validate_each(record, attribute, value)
        owner 
    
      def validate_each(record, attribute, value)
        owner = record.send(options[:with])
        actual_owner = value ? value.send(options[:with]) : nil

        return unless value
        return if owner == actual_owner

        record.errors.add(
          attribute,
          :invalid_owner,
          message: options[:message]
        )
      end