aboutsummaryrefslogblamecommitdiffstats
path: root/activejob/test/support/backburner/inline.rb
blob: 304f9c781c4d839fedd661f7f6f1dee0cfd4f449 (plain) (tree)
1
2
3
4
5
6
7
8
9
                             
                    


                                                              
                                                   

                            
   
# frozen_string_literal: true
require "backburner"

Backburner::Worker.class_eval do
  class << self; alias_method :original_enqueue, :enqueue; end
  def self.enqueue(job_class, args = [], opts = {})
    job_class.perform(*args)
  end
end