def active_job_enqueue?(klass)
      klass.is_a?(Class) && defined?(ActiveJob::Enqueuing) &&
        klass.included_modules.include?(ActiveJob::Enqueuing)
    end
def active_job_enqueue?(klass)
      klass.is_a?(Class) && defined?(ActiveJob::Enqueuing) &&
        klass.included_modules.include?(ActiveJob::Enqueuing)
    end
Returns true if the enqueuing needs to be done for an ActiveJob
  class false otherwise.

 @param [Class] klass the class to check is decendant from ActiveJob

 @return [Boolean]