Method: ActiveAsync::Async#async

Defined in:
lib/active_async/async.rb

#async(method, *args) ⇒ Object

We can pass any instance method that we want to run later. Arguments should be serializable for Resque.

Setting ActiveAsync.skip = true will bypass async altogether.



46
47
48
# File 'lib/active_async/async.rb', line 46

def async(method, *args)
  ActiveAsync.queue_adapter.enqueue(self.class.to_s, id, method, *args)
end