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: hook_helper.rb
    path of file: ./repos/openproject/app/helpers
    
    the code of the file until where you have to start completion: # Helper module included in ApplicationHelper and ActionController so tha
    
  def call_hook(hook, context = {})
    if is_a?(ActionController::Base)
      default_context = { controller: self, project: @project, request:, hook_caller: self }
      OpenProject::Hook.call_hook(hook, default_context.merge(context))
    else
      default_context = { project: @project, hook_caller: self }
      default_context[:controller] = controller if respond_to?(:controller)
      default_context[:request] = request if respond_to?(:request)
      OpenProject::Hook.call_hook(hook, default_context.merge(context)).join(' ').html_safe
    end