Sha256: e63c795b515b3c717513c76e6141f1481b972a086bacbf6c1c3e7b0ab74cdf80
Contents?: true
Size: 366 Bytes
Versions: 1
Compression:
Stored size: 366 Bytes
Contents
require 'resque' module CheetahMail # this is both extends Messenger and implements the Resque worker interface class ResqueMessenger < Messenger @queue = :cheetah def do_send(message) Resque.enqueue(self.class, message, @options) end def self.perform(message, options) Messenger.new(options).do_request(message) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cheetah_mail-0.6.0 | lib/cheetah_mail/messenger/resque_messenger.rb |