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: setting.rb
    path of file: ./repos/foreman/app/models
    
    the code of the file until where you have to start completion: require 'resolv'

class Setting < ApplicationRecord
  audited :except => [:name]
  extend Friend
    
  def validate_host_owner
    owner_type_and_id = value
    return if owner_type_and_id.blank?

    OwnerClassifier.classify_owner(owner_type_and_id)
  rescue ArgumentError, ActiveRecord::RecordNotFound => e
    errors.add(:value, e.message)
  end