aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/support/sneakers/inline.rb
blob: cf102ae5c20d7be7c7bebb5895fa86f80204b9c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
require "sneakers"

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