aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/support/backburner/inline.rb
blob: 647dbf317fae7a70a1531f6cfd3692281b3505a1 (plain) (blame)
1
2
3
4
5
6
7
8
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