Class: PerformLater::Workers::ActiveRecord::Worker
- Defined in:
- lib/perform_later/workers/active_record/worker.rb
Class Method Summary collapse
Class Method Details
.perform(klass, id, method, *args) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/perform_later/workers/active_record/worker.rb', line 5 def self.perform(klass, id, method, *args) args = PerformLater::ArgsParser.args_from_resque(args) runner_klass = klass.constantize record = runner_klass.find(id) perform_job(record, method, args) end |