Class: Backgrounded::Handler::WorklingHandler
- Inherits:
-
Object
- Object
- Backgrounded::Handler::WorklingHandler
- Defined in:
- lib/backgrounded/handler/workling_handler.rb
Defined Under Namespace
Classes: BackgroundedWorker
Instance Method Summary collapse
Instance Method Details
#request(object, method, *args) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/backgrounded/handler/workling_handler.rb', line 2 def request(object, method, *args) if object.is_a? Class = { :class => object.name, :class_method => true, :method => method, :params => args } else = { :class => object.class.name, :class_method => false, :id => object.id, :method => method, :params => args } end BackgroundedWorker.async_perform end |