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




                       
                                  




                         
# frozen_string_literal: true

require "sneakers"

module Sneakers
  module Worker
    module ClassMethods
      def enqueue(msg)
        worker = new(nil, nil, {})
        worker.work(*msg)
      end
    end
  end
end