Class: MultiWorker::Adapters::TorqueboxBackgroundable
- Inherits:
-
Object
- Object
- MultiWorker::Adapters::TorqueboxBackgroundable
- Defined in:
- lib/multi_worker/adapters/torquebox_backgroundable.rb
Class Method Summary collapse
Class Method Details
.configure(base, opts = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/multi_worker/adapters/torquebox_backgroundable.rb', line 4 def self.configure(base, opts={}) base.class_eval do include ::TorqueBox::Messaging::Backgroundable def self.perform(*args) self.new.perform(*args) end def self.perform_async(*args) perform(*args) end def perform_async(*args) perform(*args) end always_background :perform_async end end |