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: ownership.rb
    path of file: ./repos/foreman/app/models/concerns/hostext
    
    the code of the file until where you have to start completion: module Hostext
  module Ownership
    extend ActiveSupport::Concern

    included do
      OWNER_TYPES = %w(User Usergroup)
      belongs_to :owner, :polymorphic => true

    
    
    def owner
      case owner_type
        when 'User'
          User.unscoped { super }
        when 'Usergroup'
          Usergroup.unscoped { super }
        when nil, ''
          # not set yet, usually the case for new records
          nil
        else
          raise ArgumentError, "Unknown member type #{owner_type}"
      end