Class: Backgrounded::Handler::WorklingHandler::BackgroundedWorker
- Inherits:
-
Workling::Base
- Object
- Workling::Base
- Backgrounded::Handler::WorklingHandler::BackgroundedWorker
- Defined in:
- lib/backgrounded/handler/workling_handler.rb
Instance Method Summary collapse
Instance Method Details
#perform(options = {}) ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/backgrounded/handler/workling_handler.rb', line 23 def perform( = {}) clazz = [:class].constantize if [:class_method] clazz.send([:method], *[:params]) else clazz.find([:id]).send([:method], *[:params]) end end |