module ActiveJob::Enqueuing::ClassMethods

def job_or_instantiate(*args)

def job_or_instantiate(*args)
  args.first.is_a?(self) ? args.first : new(*args)
end