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