module ResqueAsync::Workers::AsyncClassWorker

Public Instance Methods

perform(klass, method, args = []) click to toggle source
# File lib/resque-async/workers.rb, line 5
def perform(klass, method, args = [])
  if args.empty?
    klass.constantize.send(method)
  else
    klass.constantize.send(method, *args)
  end
end