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



                       
                                        
                                  




                         
# frozen_string_literal: true

require "sneakers"
require "active_support/core_ext/module/redefine_method"

module Sneakers
  module Worker
    module ClassMethods
      redefine_method(:enqueue) do |msg|
        worker = new(nil, nil, {})
        worker.work(*msg)
      end
    end
  end
end