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










                                                       
require 'queue_classic'

module QC
  class Queue
    def enqueue(method, *args)
      receiver_str, _, message = method.rpartition('.')
      receiver = eval(receiver_str)
      receiver.send(message, *args)
    end
  end
end