lib/resque/mixin/async.rb
# Performs a class method if id is nil or
# an instance method if id has a value.
Performs a class method if id is nil or
an instance method if id has a value.
Performs a class method if id is nil or an instance method if id has a value .
def perform(*args)
          id = args.shift
          method = args.shift
          obj = id ? find(id) : self
          obj.send(method, *args)
        end
def perform ( * args ) id = args . shift method = args . shift obj = id ? find ( id ) : self obj . send ( method , * args ) end
Performs a class method if id is nil or
an instance method if id has a value.
Performs a class method if id is nil or an instance method if id has a value .
args
<not_specific>