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: has_web_hook.rb
    path of file: ./repos/gitlabhq/app/models/concerns/integrations
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Integrations
  module HasWebHook
    extend ActiveSupport::Concern

    included do
      after_save :update_web_hook!, if: :activated?
      has_one :service_hook, inverse_of: :integration, fo
    
    def update_web_hook!
      hook = service_hook || build_service_hook

      # Avoid reencryption
      hook.url = hook_url if hook.url != hook_url
      hook.url_variables = url_variables if hook.url_variables != url_variables

      hook.enable_ssl_verification = hook_ssl_verification
      hook.save! if hook.changed?
      hook
    end