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: activejob_spec.rb
    path of file: ./repos/appsignal-ruby/spec/lib/appsignal/hooks
    
    the code of the file until where you have to start completion: if DependencyHelper.active_job_present?
  r
    
    def perform_job(job_class, args = nil)
      perform_active_job do
        if args
          job_class.perform_later(args)
        else
          job_class.perform_later
        end
      end