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











                                       
require 'sneakers'

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