Sha256: 30afe1b441c47e6de3975d4226a4183f35e93003aaa655044ca995efb375efa4
Contents?: true
Size: 445 Bytes
Versions: 3
Compression:
Stored size: 445 Bytes
Contents
require 'resque' # handler that acts like the in process handler but marshalls the arguments # this simulates how resque encodes/decodes values to/from redis # useful when passing symbols to arguments and they end up being processed as strings module Backgrounded module Handler class PseudoResqueHandler def request(object, method, *args) object.send method, *Resque.decode(Resque.encode(args)) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems