aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/support/sneakers/inline.rb
blob: 92b69ee3bcf5411a53d1fd2ce17c3099430f9b3a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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